manic Posted September 27, 2008 Share Posted September 27, 2008 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, Quote Link to comment https://forums.phpfreaks.com/topic/126078-image-rotation-quality/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.