Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request/Inquiry: Additional WebP Compression Options #154

Open
Saijin-Naib opened this issue Apr 9, 2023 · 3 comments
Open

Feature Request/Inquiry: Additional WebP Compression Options #154

Saijin-Naib opened this issue Apr 9, 2023 · 3 comments
Labels
feature-request Feature request

Comments

@Saijin-Naib
Copy link

I've been using Curtail to work on my JPEGs under Linux, and appreciate the recent addition of WebP compression/transcode.

In looking at compressor.py, I note that a number of cwebp options I use for single-file transcoding locally are absent.

My question is twofold:

  1. Would additional options be welcomed?
  2. Would they need UI integration to be added?

My proposed additional options for cwebp (and accompanying explanation):

  • sharp_yuv helps prevent color shift when the colorspace conversion happens
  • pass 10 helps to ensure the best compression efficiency by iterating on the file 10 times
  • alpha_filter best tries to do the best quality of prediction before compression on the alpha channel
  • hint photo tunes the encoder for my subject material (photographs) to help improve PSNR
  • af is experimental, but tunes the filters automatically. Subjectively, this has been wonderful
  • pre 2 is a pseudo-random dithering which should help prevent artifacting
@Huluti Huluti added the feature-request Feature request label May 5, 2023
@JumperLuko
Copy link

It would be very useful if I could convert from a format like jpg to webp, with the lack of a function to convert between different formats the app has no use for me. I would be grateful if there was a day

@Saijin-Naib
Copy link
Author

@Huluti

Do you have any insight into questions 1 and 2 that I posed in the OP?

If you are good with my suggested options, and the answer to 1 is yes, then I can open a PR.

If the answer to 2 is yes, then I'll likely need help doing that part of it as I don't understand gtk/pygtk at all.

@Saijin-Naib
Copy link
Author

Just following up again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants