mogrify flip

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
lentebriesje
Posts: 1
Joined: 2015-06-14T03:39:58-07:00
Authentication code: 6789

mogrify flip

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: mogrify flip

Post 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
snibgo's IM pages: im.snibgo.com
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: mogrify flip

Post 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.
Post Reply