Error: Montage: frame is less than image size

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
xberg
Posts: 13
Joined: 2017-11-23T03:02:10-07:00
Authentication code: 1152

Error: Montage: frame is less than image size

Post by xberg »

Hi,
I am trying to create contact sheets with borders around the thumbnails. But the borders do not appear on all images.

this is my command:

magick montage -verbose -frame 6 -label "%%f" -font Arial -pointsize 10 -background "#ffffff" -fill "#333333" -define jpeg:size=200x200 -geometry 200x200+2+2 -auto-orient *.jpg contact.jpg

Extract from the output:
http://prntscr.com/hqlm00

As you can see mostly my vertical images do not have borders.
The error I get is:
montage: frame is less than image size `02-175257.jpg' @ error/decorate.c/FrameImage/219.

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error: Montage: frame is less than image size

Post by fmw42 »

What is your exact version of ImageMagick

This works fine for me on IM 7.0.7.15 Q16 Mac OSX Sierra.

Code: Select all

magick montage -verbose -frame 6 -label "%f" -font Arial -pointsize 10 -background "#ffffff" -fill "#333333" -tile 2x2 -define jpeg:size=200x200 -geometry 200x200+2+2 -auto-orient rose: logo: netscape: wizard: contact.jpg
Does my command work for you or fail? If it works for you, then post an example with your input and output images, so we can test your exact conditions.
xberg
Posts: 13
Joined: 2017-11-23T03:02:10-07:00
Authentication code: 1152

Re: Error: Montage: frame is less than image size

Post by xberg »

Hello Fred,
Thank you for your reply: much appreciated really.
Yes: your demo works perfectly. My command also works for most files but not all: specifically some thin portrait-format photos generate the error.

Output contact sheet:
https://1drv.ms/i/s!AqDPqQIgWkb0zEZo6SK-RnBlHJj5

Original files:
https://1drv.ms/f/s!AqDPqQIgWkb0zEUUhsePvi6_dOfr

And my command line:

Code: Select all

magick montage -verbose -frame 6 -label "%%f" -font Arial -pointsize 10 -background "#ffffff" -fill "#333333" -tile 2x2 -define jpeg:size=200x200 -geometry 200x200+2+2 -auto-orient *.jpg contact.jpg
Running IM 7.0.7-11 on Win 10.
EDIT: tested again on the latest version: 7.0.7-15 Q15 Win 10 x64 and same error.
Last edited by xberg on 2017-12-21T14:23:11-07:00, edited 1 time in total.
xberg
Posts: 13
Joined: 2017-11-23T03:02:10-07:00
Authentication code: 1152

Re: Error: Montage: frame is less than image size

Post by xberg »

My problem seems to be the same as this one reported 10 years ago but not followed through by original poster:
viewtopic.php?t=8427
xberg
Posts: 13
Joined: 2017-11-23T03:02:10-07:00
Authentication code: 1152

Re: Error: Montage: frame is less than image size

Post by xberg »

In some wild testing I found a voodoo workaround: using an odd number instead of an even number for -frame works! ie: 5 or 3 instead of 6.
Should be documented :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error: Montage: frame is less than image size

Post by fmw42 »

xberg wrote: 2017-12-21T14:49:23-07:00 In some wild testing I found a voodoo workaround: using an odd number instead of an even number for -frame works! ie: 5 or 3 instead of 6.
Should be documented :)
Ii can confirm your results using IM 7.0.7.15 Q16 Mac OSX and also IM 6.9.9.27

The results from the even numbers (6) is rather strange.

Please report this on the bugs forum
Post Reply