lovell / lovell/sharp

Metadata for lossy/lossless WebP

Open
#2,461 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

blocked-upstream-dependency enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.