Page 1 of 1

mogrify flip

Posted: 2015-06-14T03:48:39-07:00
by lentebriesje
Hi ImageMagick forum,

I need to verticaly flip 4225 PNG images. Besides flipping i want them to remain exactly the same, 16 bit grayscale. Photoshop takes about 18 hours to do this through a batch process. It's super important for me the images remain the same, irfanview remaps gray values which makes the files completely useless to me. So i decided to look for another tool and found imagemagick, hopefully this tool can help me.

Based on my research i simply need mogrify -flip. So i opened windows commandprompt on the folder with images i wanted to flip and typed the command C:\"Program Files"\ImageMagick-6.9.1-Q16\mogrify.exe -flip

Unfortunately that doesn't do a thing. And i'm not sure why. And that's what brought me here. What am i doing wrong?

Re: mogrify flip

Posted: 2015-06-14T04:07:55-07:00
by snibgo
You need to say what files you want flipped, eg *.png:

Code: Select all

C:\"Program Files"\ImageMagick-6.9.1-Q16\mogrify.exe -flip *.png

Re: mogrify flip

Posted: 2015-06-14T06:43:48-07:00
by glennrp
You may find that ImageMagick also "optimizes" the images so that they don't end up with the same bit depth. If that happens, try

Code: Select all

mogrify.exe -flip -define png:bit-depth=16  -define png:color-type=0 *.png
Because of a bug introduced in ImageMagick-6.9.1-3, you'll need to use either ImageMagick-6.9.1-2 or earlier, or 6.9.1-6 or later.