Re: -border - Bug or stupidity on my part?
Re: -border - Bug or stupidity on my part?
I am not very impressed with your image hosting choice.
Re: -border - Bug or stupidity on my part?
I had absolutely no idea about the hosting. I'm at work and just asked a colleague for a quick image host link. I'm very sorry about that. Is there any way of removing the post so I can repost it later? Apologies, truly.
Re: -border - Bug or stupidity on my part?
We can reproduce the problem you posted and will have a fix in the next point release. Thanks.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: -border - Bug or stupidity on my part?
Strange result. I wonder what caused it?sinubux wrote:
- montage -size 150x150 -bordercolor black -border 5x5 IMG*.JPG OUT.JPG
I will also say that it is a good idea to read in images FIRST before trying to do an operation on them.
montage -size 150x150 IMG*.JPG -bordercolor black -border 5x5 \
OUT.JPG
It may be that this will fix the problem in your current version.
NOTE -size is only a hint to the JPG library. the images that will be read into member will be larger than this (typically somewhere beterrn 150 to 512 pixels. As you did not specify a geomtry montage will default to a resize of the resulting image to abotu 128 pixel montage cells.
See the very first example in IM Examples, Montage Introduction
http://www.imagemagick.org/Usage/monatge/#montage
It is a good idea to either set the montage cell size, or trun it off using a -geometry option
just before the output image
To actually specify the final image size to use (say fit into a 100x100 pixels) in the montage you can either
resize while reading each image (good for memory)
Code: Select all
montage -size 150x150 IMG*.JPG'[100x100]' .... -geometry +5+5 OUT.JPG
Code: Select all
montage -size 150x150 IMG*.JPG -resize 100x100 .... -geometry +5+5 OUT.JPG
Code: Select all
montage -size 150x150 IMG*.JPG ...-border... -geometry 100x100+5+5 OUT.JPG
I recommend reading the IM Examples section on Montage, so you can get what YOU want.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/