flip image in montage

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
contremaitre
Posts: 6
Joined: 2013-04-14T12:00:39-07:00
Authentication code: 6789

flip image in montage

Post by contremaitre »

Hi,
I'd like to batch process some pictures to make compiste pictures automaticaly.
It's working fine when the pictures have accurate exif orientation.
But when it's not the case my composite pictures are awful because the input pictures are not correctly turned.
I tried the -flip montage option but it seems it flips the output picture, not the inputs.

Is there an option to turn every single picture in the same orientation for the montage, or should I use convert before sending my pictures to montage ?

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

Re: flip image in montage

Post by fmw42 »

You can use convert and pipe the output to the input of montage.

convert image1 image2 ... imageN -flip miff:- | montage - ..... output
contremaitre
Posts: 6
Joined: 2013-04-14T12:00:39-07:00
Authentication code: 6789

Re: flip image in montage

Post by contremaitre »

Thanks.
Actually I misinterpreted the flip option.
I want to rotate the image (need them all in portrait or all in landscape mode).
So I suppose I should still use convert with rotate option, and pipe it to montage ?
contremaitre
Posts: 6
Joined: 2013-04-14T12:00:39-07:00
Authentication code: 6789

Re: flip image in montage

Post by contremaitre »

Ok I got it with the rotate option and pipe.
Thanks fmw42
Post Reply