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?
mogrify flip
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: mogrify flip
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
Re: mogrify flip
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
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.
Code: Select all
mogrify.exe -flip -define png:bit-depth=16 -define png:color-type=0 *.png