In the ImageMagick documentation, it says that if you use montage
without any fancy options, it should just line up your images without any decoration and with some spacing.
That's not happening to me. Here are my two input images:
These are two separate PNGs, both of size 100x100, with red backgrounds. Now, if I run montage 1.png 2.png out.png
, it produces an image file out.png
that looks like this:
You may notice, there are labels there. I've tried everything, and I can't remove these labels. For instance, adding -label ""
to the command produces this:
It's not obvious because of the white background, but the space for labels is still part of the image, there's just nothing there.
The end result is that i want to tightly pack these images (so these two would produce a 200x100 png), and I would expect the command to be somthing like this: montage -geometry 100x100+0+0 -label "" -background blue 1.png 2.png out3.png
Here I've made the background blue to highlight the "label" area, in the final version it shouldn't be necessary. This is what that command produces:
The size of the image is 200x118, indicating that it's added 18 pixels for the labels. Removing the label argument to the command does nothing except making the label a number. I think I'm losing my mind a little bit, I've tried dozens of variations of this command, and nothing gets rid of that "label space". Given that they show up by default, and the documentation indicates that it shouldn't, I'm starting susupect that it's a bug in ImageMagick, but again: losing my mind. I think I'm probably just missing something obvious.
I'm on macOS, with ImageMagick installed through Homebrew, though I tried with the version directly from their site, and it didn't work. This is what montage -version
reports:
Version: ImageMagick 7.0.5-7 Q16 x86_64 2017-05-20 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib