Recommendation for compressing JPG files with ImageMagick

后端 未结 10 1319
有刺的猬
有刺的猬 2020-12-04 04:10

I want to compress a JPG image file with ImageMagick but can\'t get much difference in size. By default the output size is bigger than the input. I don\'t know why, but afte

10条回答
  •  青春惊慌失措
    2020-12-04 04:59

    Once I needed to resize photos from camera for developing:

    • Original filesize: 2800 kB
    • Resolution: 3264x2448

    Command:

    mogrify -quality "97%" -resize 2048x2048 -filter Lanczos -interlace Plane -gaussian-blur 0.05 
    
    • Result filesize 753 kB
    • Resolution 2048x2048

    and I can't see any changes in full screen with my 1920x1080 resolution monitor. 2048 resolution is the best for developing 10 cm photos at maximum quality of 360 dpi. I don't want to strip it.

    edit: I noticed that I even get much better results without blurring. Without blurring filesize is 50% of original, but quality is better (when zooming).

提交回复
热议问题