imagemagick按相对像素调整大小

imagemagick按相对像素调整大小,imagemagick,resize-image,Imagemagick,Resize Image,imagemagick有没有办法在不知道原始图像大小的情况下,将图像调整到比原始图像小10像素的大小 我知道对于100x100的图像 convert input.png -resize 90x90! +repage output.png 我会做的技巧,但我想删除90x90部分与类似的东西 convert input.png -resize -10x-10! +repage output.png 因此,它可以处理其他大小的图像。尝试将subcall与以下内容一起使用 identify -for

imagemagick有没有办法在不知道原始图像大小的情况下,将图像调整到比原始图像小10像素的大小

我知道对于100x100的图像

convert input.png -resize 90x90! +repage output.png
我会做的技巧,但我想删除90x90部分与类似的东西

convert input.png -resize -10x-10! +repage output.png

因此,它可以处理其他大小的图像。

尝试将subcall与以下内容一起使用

identify -format "%[fx:w]x%[fx:h]" image.jpg
你说的“副呼叫”是什么意思?我不能执行subshell命令,但需要一种方法在相同的转换序列中执行它,因为它用于动画gif管道