在蒙太奇中保留剪辑大小
我正在使用 PerlMagick,我有 4 个不同尺寸的剪辑图像,
尺寸为 25x25、32x32、40x40、50x50
我正在使用简单的读取命令和蒙太奇从中创建一个蒙太奇。
但是当我使用蒙太奇时,不知何故所有图像都被制作为统一尺寸,我认为是最大尺寸,即 50x50。
我怎样才能阻止 PerlMagick 的 Montage 重新调整大小。
我已经尝试过了,几何=> '+1+1' 和几何 => '1x1<+1+1'
I am using PerlMagick and I am having 4 clipped images of various sizes,
Sizes are 25x25, 32x32, 40x40, 50x50
And I am creating a montage out of this, using simple Read command and Montage.
But when I use Montage, somehow all the Images are made to Uniform size, I think to the Maximum size, that is, 50x50.
How can I stop PerlMagick`s Montage from re-sizing.
I already tried, geometry => '+1+1' and geometry => '1x1<+1+1'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK,蒙太奇的几何是每个图块的大小。因此,您可以尝试根本不指定几何图形。如果这不起作用,您可以制作一些额外的空白 50x50 图像,将 25x25、32x32 和 40x40 图像合成在空白之上,然后将它们蒙太奇;本质上,您只需将所有内容设置为相同大小(不缩放)即可完成。
ImageMagick:很棒的工具,但 API 有点奇怪。
AFAIK,
geometry
for montage is the size of each tile. So, you can try not specifying the geometry at all. If that doesn't work, you can can make some extra blank 50x50 images, composite the 25x25, 32x32, and 40x40 images on top of the blanks and then montage those; essentially you'd just make everything the same size (without scaling) and be done with it.ImageMagick: great tool, somewhat odd API though.