I'm looking for a solution to get the best jpeg compression when down scaling an image. I'm comparing Vips + Mozjpeg and Imagick (convert).
My original file (pic.jpg) is 6.5 MB.
I run:
vipsthumbnail pic.jpg --size=1920x1280 --delete -o pic-vips-q96.jpg[Q=96,optimize_coding,strip,intelace]
and I my output file is 1.7 MB
I run:
convert pic.jpg -resize 1920x1280 -quality 96 -interlace plane -strip pic-imagick-q96.jpg
and my output file is 1.2 MB
Am I doing fair comparison here? Is Imagick that much better in compressing?
The link to the original image (from unsplash): https://images.unsplash.com/photo-1545278068-cdca78378350
I'm comparing these two libraries because they both have Go bindings, which I need in my project.
Grateful for any advice!