Efficiently generating thumbnails with ImageMagick and convert

前端 未结 5 1401
栀梦
栀梦 2020-12-25 09:06

I\'m looking to efficiently generate various sized thumbnails with ImageMagick\'s convert utility in Python. Some of my image files are quite large (~15MB JPGs).

One

5条回答
  •  独厮守ぢ
    2020-12-25 09:47

    For my point of view, and after testing, resizing 1024x768 to 800x600 is bad for rescaling algorithm. The next resize are more easier, because of multiple of integer (2).

    So, for quality reason, I personnaly thing, this is better :

    convert sample_image.jpg -resize 1024x768  sample_image-1024x768.jpg
    convert sample_image.jpg -resize 800x600   sample_image-800x600.jpg
    convert sample_image-800x600.jpg   -resize 400x300   sample_image-400x300.jpg
    convert sample_image-400x300.jpg   -resize 200x150   sample_image-200x150.jpg
    

提交回复
热议问题