Page 1 of 1

Error: Montage: frame is less than image size

Posted: 2017-12-21T09:07:51-07:00
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

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

Posted: 2017-12-21T11:27:27-07:00
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.

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

Posted: 2017-12-21T13:48:10-07:00
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.

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

Posted: 2017-12-21T14:00:33-07:00
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

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

Posted: 2017-12-21T14:49:23-07:00
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 :)

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

Posted: 2017-12-21T15:14:38-07:00
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