开发者

Improve performance of ImageMagick thumbnail generation [closed]

开发者 https://www.devze.com 2023-03-01 20:26 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to imp开发者_如何学JAVArove this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to imp开发者_如何学JAVArove this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I am currently generating thumbnails via ImageMagick's convert tool in this manner:

/usr/bin/convert input.jpg -size 140x93 -resize 740 -resize 186 \
-gravity center -crop 140x93+0+0 -format jpg -quality 90 jpg:output.jpg

But I feel like the conversion time is taking too long. It's about 5 seconds per thumbnail on an 8-core 2.5GHz Xeon. Is there any way I can optimize this or increase the performance while maintaining the crop and gravity center?

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消