linux - 使用命令行对图片进行缩放: convert
访问量: 1538
命令为:
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