Jump to content

image rotation quality


manic

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,

Link to comment
https://forums.phpfreaks.com/topic/126078-image-rotation-quality/
Share on other sites

Archived

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

×
×
  • 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.