Metadata for lossy/lossless WebP
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 32.7k
- Forks
- 1.4k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Description
Could there be metadata to tell whether an input webp (or heif/avif) image is lossy or lossless? The context is we would like to preserve the lossiness when transforming images. Not just for webp -> webp but when getting an input webp, figuring out whether we should convert it to JPEG or PNG depending if it's lossy or not.
Maybe something like a `lossless` boolean as part of the input metadata?
Contributor guide
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 by reviewing how sharp exposes input metadata for WebP, HEIF, and AVIF images. Done means providing a lossless indicator that can guide whether transformed images should use JPEG or PNG while preserving the input's lossiness.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100