Replicating montage label example
Posted: 2019-06-27T12:34:14-07:00
Hi all,
I have been wrestling with montage, trying to label each constituent image so that that the label is printed completely below the image. I am very green when it comes to imagemagick... the example made it look simple enough:
Which, according to the montage Usage page, should produce:
However, when I download the images (from http://www.imagemagick.org/Usage/images/) and run the code on my own system (Fedora release 29, Intel Core i7-6700 CPU @ 3.40GHz × 8, AMD Oland GPU), I get the following:
In the example image, the label text is nicely accommodated. In my image, the label text is printed on top of the images somewhat. Also, in my version, the title has not printed. I have played around with -geometry and -frame and -border but haven't been able to replicate the output the code should have provided (according to the published example). Does anyone have suggestions? Been beating my head against this for hours... Thank you!
My ImageMagick version details are below.
PS: I tried compiling the latest source (I didn't want to install the pre-compiled RPM bundle for fear of it interfering with my package-managed installation) but it doesn't seem to be building in any of the "decode delegates":
I have been wrestling with montage, trying to label each constituent image so that that the label is printed completely below the image. I am very green when it comes to imagemagick... the example made it look simple enough:
Code: Select all
montage -label Balloon balloon.gif \
-label Medical medical.gif \
\( present.gif -set label Present \) \
\( shading.gif -set label Shading \) \
-tile x1 -frame 5 -geometry '60x60+2+2>' \
-title 'My Images' titled.jpg
However, when I download the images (from http://www.imagemagick.org/Usage/images/) and run the code on my own system (Fedora release 29, Intel Core i7-6700 CPU @ 3.40GHz × 8, AMD Oland GPU), I get the following:
In the example image, the label text is nicely accommodated. In my image, the label text is printed on top of the images somewhat. Also, in my version, the title has not printed. I have played around with -geometry and -frame and -border but haven't been able to replicate the output the code should have provided (according to the published example). Does anyone have suggestions? Been beating my head against this for hours... Thank you!
My ImageMagick version details are below.
Code: Select all
$ convert --version
Version: ImageMagick 6.9.9-38 Q16 x86_64 2018-07-12 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib
Code: Select all
[chriscox@HS-PSYC-839XF32 ImageMagick-7.0.8-50]$ ./magick.sh montage \
-label Balloon balloon.gif \
-label Medical medical.gif \
\( present.gif -set label Present \) \
\( shading.gif -set label Shading \) \
-tile x1 -frame 5 -geometry '60x60+2+2>' \
-title 'My Images' \
titled.jpg
montage: no decode delegate for this image format `GIF' @ error/constitute.c/ReadImage/504.
montage: missing an image filename `titled.jpg' @ error/montage.c/MontageImageCommand/1795.
Code: Select all
[chriscox@HS-PSYC-839XF32 ImageMagick-7.0.8-50]$ ./magick.sh montage -list format
Format Module Mode Description
-------------------------------------------------------------------------------
* native blob support
r read support
w write support
+ support for multiple images