另外,再用ImageMagick的convert来生成缩略图时,建议采用-sample参数而不是-resize或
者-geometry,前者会比后者快三倍。比如:
# time convert P4175994.JPG -resize 100x100 1.jpg
real 0m2.268s
user 0m2.114s
sys 0m0.122s
# time convert P4175994.JPG -sample 100x100 1.jpg
real 0m0.881s
user 0m0.772s
sys 0m0.108s