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
Image Rotation
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Image Rotation
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.
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Image Rotation
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.
for %%i in ("C:\RotatingImage\*.tif") do convert "%%~si" -rotate "-180<" "C:\test\%%~ni%%~xi"
Thanks to for all that viewed and helped.