ImageMagick / ImageMagick/Website

WebP Encoding Options - unclear example

Open
#117 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Shell
Stars
44
Forks
67
Avg merge
20h 9m
Merged PRs (30d)
17

Description

https://imagemagick.org/script/webp.php uses -quality 50 with lossless. But if I understand correctly, -quality corresponds to "compression rate" in this case?

https://github.com/webmproject/libwebp/blob/main/doc/tools.md

quality parameter will in this case control the amount of processing time spent trying to make the output file as small as possible

It might make sense to give two examples (for lossy and lossless) and clarify -quality parameter for lossless case.
Also, 50 seems a bit low, maybe it should be a higher value or max value (99?).

Contributor guide

No contributing guide indexed for this repository

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 with the WebP page at imagemagick.org/script/webp.php and compare its -quality example with the referenced libwebp tools documentation. Done means the page clearly distinguishes lossy and lossless examples and explains what -quality controls for lossless encoding, including whether the example value should change.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.