Jump to content


Photo

Cropping Images


  • Please log in to reply
3 replies to this topic

#1 fezzik

fezzik
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 13 October 2006 - 04:20 PM

Anyone have a link or an example of a decent code to crop images? I'm looking for a script that will crop an image if the origin is set as the center of the image.


Cheers,

Fezzik

#2 gmwebs

gmwebs
  • Members
  • PipPipPip
  • Advanced Member
  • 174 posts
  • LocationLondon

Posted 13 October 2006 - 05:51 PM

Hey Fezzik,

Have a look at CropCanvas at http://php.amnuts.com it is a great class and easy to use.

HTH

#3 fezzik

fezzik
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 13 October 2006 - 08:54 PM

Thanks for responding! I have actually been working with the CropCanvas class found at that site. Unfortunately I haven't been able to get the saveImage() or saveFinal() function to work correctly. Both functions are not saving as intended. I noticed other posts on the site's forum about the issue but didn't notice a fix. I should make a post in the site forum about the issue and see if I get a response. Thanks again!

#4 fezzik

fezzik
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 13 October 2006 - 09:11 PM

Death to syntax! Thanks again for posting gmwebs. You motivated me to take another look at CropCanvas. I noticed that I was using incorrect syntax and have corrected the issue. Everything is functioning correctly now.

Cheers,

Fezzik




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users