2024-06-26 07:35:02 发布
网友
我想把图像裁剪到收音机上,比如4:3。在
但我想要最大的中心部分,例如:
到
我在the imagemagick documentation找不到我的情况。在
(图中的尺寸非常不准确,但你应该知道这一点)
最后,我为我写了一个小脚本:reduce-ration(它需要ruby和fastmagegem:gem install fastimage)
gem install fastimage
在我的例子中:reduce-maxi 4x3 center shutup.png templerun.jpg
reduce-maxi 4x3 center shutup.png templerun.jpg
您可以像这样使用它:reduce-maxi RATIO DIRECTION IMAGES...。有关详细信息,请参见the gist。在
reduce-maxi RATIO DIRECTION IMAGES...
我还写了一个脚本来获得图像的比例。见the gist。在
最后,我为我写了一个小脚本:reduce-ration(它需要ruby和fastmagegem:
gem install fastimage
)在我的例子中:
reduce-maxi 4x3 center shutup.png templerun.jpg
您可以像这样使用它:
reduce-maxi RATIO DIRECTION IMAGES...
。有关详细信息,请参见the gist。在我还写了一个脚本来获得图像的比例。见the gist。在
相关问题 更多 >
编程相关推荐