Support WebP embedded in SVG
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 212
- Forks
- 132
- Avg merge
- 5h 18m
- Merged PRs (30d)
- 11
Description
## Feature request
### What are you trying to achieve?
Embedding WebP in SVGs and converting that SVG to PNG or WebP
### When you searched for similar feature requests, what did you find that might be related?
There are tests supporting PNGs embedding in SVGs:
https://github.com/lovell/sharp/blob/1533bf995acda779313fc178d2b9d46791349961/test/unit/svg.js#L116
### What would you expect the API to look like?
No API change.
### What alternatives have you considered?
### Please provide sample image(s) that help explain this feature
N/A
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked test/unit/svg.js case for PNGs embedded in SVGs, then inspect the sharp-libvips packaging scripts to understand where this support is exercised. Done means SVGs containing embedded WebP images convert successfully to PNG or WebP without an API change, with coverage alongside the referenced tests.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100