【发布时间】:2010-12-06 01:05:04
【问题描述】:
我正在使用命令行中的 ImageMagick 来调整图像大小:
convert -size 320x240 image.jpg
但是,我不知道如何确定最终图像的大小。由于这是比例图像比例,因此新图像的尺寸很可能是 100x240 或 320x90(不是 320x240)。
我可以调用“转换”命令来调整图像大小并返回新的图像尺寸吗?例如伪代码:
convert -size 320x240 -return_new_image_dimension image.jpg // returns the new resized image dimensions
【问题讨论】:
标签: image unix image-processing command-line imagemagick