Recompress JPG using djpeg/cjpeg

Package

Gentoo
media-libs/jpeg

Single command

$ djpeg input.jpg | cjpeg -quality 95 -optimize -outfile output.jpg

Sample Results

$ identify source.jpg

source.jpg JPEG 2816x2112 2816x2112+0+0 DirectClass 8-bit 2.70683mb 0.670u 0:02
Quality Size Ratio
Original 2,838,316 100%
100 3,538,719 125%
95 1,840,092 65%
90 1,053,815 37%
85 747,327 26%
80 577,586 20%
75 459,242 16%
70 387,038 14%
65 324,284 11%
60 277,428 10%
55 241,351 9%
50 216,518 1%
jpg
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.