发布时间: 2018-07-07 09:44:00
参考: https://stackoverflow.com/questions/7200909/imagemagick-convert-to-fixed-width-proportional-height/7201084
命令为:
convert myfigure.png -resize 200x100 myfigure.jpg
convert -resize 50% myfigure.png myfigure.jpg
想要缩放成固定宽度?
$ convert -resize 1500x old.jpg new.jpg
想要缩放成固定高度(宽度自适应)
$ convert -resize x1000 old.jpg new.jpg