Simple image rotate and save script
It’s one of those illusive scripts that sound complicated and difficult, but it’s not. In fact, it’s actually straight forward to rotate an image via a web based interface. We put together a simple script which rotates the image to the left or the right and saves over the original image . It uses GD Libraries and runs on Linux, Apache and PHP. The only thing you have to watch out for, is that the image permissions have been set to 777. Otherwise, it’s very straight forward.
Click here to view the demo
| Format | Size | Download |
| imagerotate.zip | 19 KB | Download |
| imagerotate.tar | 18 KB | Download |
By admin / Nov 14th, 2007 / Category:





very useful, digged
It’s part of a series of image manipulation posts. The next one deals with image resizing and optimization.
[...] Click here to go to my previous post about image rotation. [...]
I can’t seem to download the imagerotate.zip file. I would very much like to use this script. Could you please give me a link to the file. Many thanks.
Jas
Thanks Jas, it’s sorted now. It was due to the recent theme change to nobox.
Robin I am concerned that some shells can be sent to a page I am designing saving the code as GIF. I have all scripts RESIZE, WATERMARKING, UPLOAD and can study them to fusionate them but the thing is, has anybody done this, I mean you or perhaps have you seen it somewhere else? Kinda boring working hard to find out after I open the site that others had the script polished and cuter.
Thanks man,
Bani - Venezuela.
Thank you for this compact and very useful bit of code. There is a minor error in your file. I needed to remove header(’Content-type: image/jpeg’) ; from row 16 so the script would work in FF or Opera.