Montage images not respect the position

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
seiko
Posts: 7
Joined: 2012-08-01T01:12:37-07:00
Authentication code: 15

Montage images not respect the position

Post by seiko »

I have this montage
1 2 3
4 5 6
7 8 9
And i want if 8 image not exist to be replaced by a white space. Right now 9 is moved in that place and 9's position is white.
How to do that?
My command is: montage -quality 100 -tile 3x3 -geometry 457x284-0-0 + list of images paths.

I tried with -immutable option but i dont know how to use it. montage -quality 100 -tile 3x3 -geometry 457x284-0-0 -immutable + list of images paths.

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

Re: Montage images not respect the position

Post by fmw42 »

Test if an image exists via unix commands and if it does not then replace the image with null: in your list of images
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Montage images not respect the position

Post by anthony »

See Montage in IM Examples
Leaving Gaps in a Montage
http://www.imagemagick.org/Usage/montage/#null
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply