Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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