Page 1 of 1

Image Rotation

Posted: 2011-07-19T19:45:00-07:00
by wormy8378
Ok this should be an easy one for you guy's. I'm am very new. Here is what I'm trying to do. I have a .tif file in "X:\upsidedown\this is my file.tif " I want to Rotate this image 180 and place it in "x:\corrected\*.tif" folder. Here's the part I can't get. I want it to convert , take the original file name "this is my file.tif" and rename the converted file the same. I want to be able to drop the file in the upsidedown folder run a batch file to convert it and it be corrected.

We receive faxes in as .tif files and every file name is different so I'm trying to make it as easy as possible, I will take any suggestions.

Thanks so Much
Shaun

Re: Image Rotation

Posted: 2011-07-19T21:41:42-07:00
by anthony
First avoid the drive letter prefix "X:...." IM may think that is a coder, not a drive letter!
I do not know how that should be fixed.


Second mogrify can take a list of files modify them and save them to a different directory (-path)
or a different suffix or image file format (-format)

See IM Examples, Basics, Mogrify
http://www.imagemagick.org/Usage/basics/#mogrify

Also a little further down the examples shows techniques for doing the same thing with convert as well has the real differences between convert and mogrify for this handling.

You may also like to see
IM using Windows
http://www.imagemagick.org/Usage/windows/

which goes into dos loops and such handling. It also probably looks at teh drive letter problem - I don't remember off hand, as I am not actually a windows user.

Re: Image Rotation

Posted: 2011-07-20T08:47:07-07:00
by wormy8378
OK I have got this corrected using this batch file.
for %%i in ("C:\RotatingImage\*.tif") do convert "%%~si" -rotate "-180<" "C:\test\%%~ni%%~xi"
Thanks to for all that viewed and helped.