danielgtaylor / jpeg-archive

Utilities for archiving JPEGs for long term storage.
1.17k stars 121 forks source link

[Discussion] Fine tune jpeg-recompress for lower size? #127

Open yellow1912 opened 2 years ago

yellow1912 commented 2 years ago

This is more of a discussion than an issue, but since I don't find the discussion tab for this repo, I hope it's okie to post it here.

I'm trying to run the same image through jpeg-recompress and shortpixel:

https://www.pexels.com/photo/close-up-photography-of-woman-s-face-with-freckles-2709386/

The image is first resized to 2560x3840, then it's sent to:

  1. Shortpixel with lossy option (can be testing by uploading that image to lossy tab here: https://shortpixel.com/online-image-compression): result is 553KB image
  2. jpeg-recompress --quality high --min 70 --method smallfry: result is 1122KB image (almost double the size)
  3. jpeg-recompress --quality medium --min 70 --method smallfry: result is 793KB image

I wonder if I'm not setting jpeg-recompress to be aggressive enough?

ganego commented 2 years ago

Hard to say what quality you find acceptable.
I'd recommend getting WinMerge https://github.com/WinMerge/winmerge/releases/tag/v2.16.18 and checking the quality of the pics upon close zoom.

zvezdochiot commented 2 years ago

Hi all.

You can also use rdopt for similar purposes. Discussion