Rotating pictures without deterioration

See all posts Reply

Rotating pictures without deterioration  new!
by Richard Capion, 15 years, 3 months ago
I'm using class.upload.php for importing pictures to a photo gallery which works great. I made it possible to rotate uploaded photos via a back-end, but I realised that for every rotation the quality of the photo was deteriorated.
I's there a way to do a "loss less" rotation of already uploaded pictures?Reply
Re: Rotating pictures without deterioration  new!
by colin, 15 years, 3 months ago
Yes, you loose quality if you process the same image several times.

If you use the class to receive the image, and then post-process it to rotate it, you can try to increase the class image quality to loose a little as possible. Set the jpeg_quality setting to 100, and the image that you will post-process will be of better quality to start with.

Besides, the class already has some rotation methods, which you can use. However, it can only rotate by increment of 45 degrees. It is planned in a next version to implement rotations of any degrees.Reply