Jump to content

Archived

This topic is now archived and is closed to further replies.

manic

image rotation quality

Recommended Posts

Hi, I'm trying to build a php application which will allow me to resize, crop and rotate images. I was disappointed to find that rotation angle was not a parameter that I could specify for imagecopyresampled(). In order to rotate, it seems my only option is to rotate with imagerotate() and then apply imagecopyresampled for cropping and scaling. My concern is image quality. Not only am I resampling twice, but imagerotate() doesn't have a quality parameter, and the jpg compression it applies is quite noticable.

 

For example, see:

http://www.aerian.com/test/image_rotation/?degrees=28

or even:

http://www.aerian.com/test/image_rotation/?degrees=0

(which applies the function with no rotation)

 

Can anybody suggest a better way to rotate images without loosing quality, preferably with facilities for cropping and scaling at the same time.

 

Many thanks,

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.