有没有办法使用imagemagick将图像调整到比原始图像小10个像素,但不知道原始图像的大小?
我知道对于100x100的图像
convert input.png -resize 90x90! +repage output.png我可以做到这一点,但我想删除90x90部分,如下所示
convert input.png -resize -10x-10! +repage output.png这样它就可以处理其他大小的图像。
发布于 2014-07-10 18:21:36
尝试使用带有以下内容的子调用
identify -format "%[fx:w]x%[fx:h]" image.jpghttps://stackoverflow.com/questions/24672924
复制相似问题