Hi Forum:
I am look for a way to rotate an image, 'X' degrees; where 'X' is any variable number between 0-360. I could not find a direct property for this. Any ideas on how it can be accomplished?
Thanks
Rotating an image
Moderators: Dorian (MJT support), JRL
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
IMHO the best way to manipulate images with MacroScheduler is to automate the command line mode of ImageMagick. A very simple script to rotate an image by a defined number of degrees (221 in the example) and and save to a new file would be:
Image rotation is a complex subject and ImageMagick has other features that can help with issues like distortion (jaggies), and how to handle the blank spaces that result when an image is rotated by a non multiple of 90 degrees - but an imagemagick/graphics forum would be the place for that discussion.
Code: Select all
Let>RP_WINDOWMODE=0
Let>rot=221
Run program>c:\imag\convert.exe -rotate %rot% c:\stuff\rottest.gif c:\stuff\rottest%rot%.gif
-
- Junior Coder
- Posts: 24
- Joined: Sun Jun 11, 2006 9:50 am
I think you could, but...
Instead of distributing a copy of imagemagik or whatever it is called, why not give everyone a copy of a macro that ftps the file to a server where you have the app, a macro there will check the directory and rotate the image and send it back. Job done. None of that is very hard either if you break it down and hammer the help files
don't be a chicken little
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
It may be possible to do it completely in macroscheduler as the OP wanted. Apparently vbscript can rotate images, and macroscheduler includes vbscript.