Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.5

Request #6004 Scale Max X and Y methods
Submitted: 2005-11-17 20:07 UTC
From: gauthierm Assigned:
Status: Closed Package: Image_Transform
PHP Version: 5.0.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 8 + 14 = ?

 
 [2005-11-17 20:07 UTC] gauthierm
Description: ------------ For one of our clients, we'd like to scale images down if their width is larger than a set width. Here is a patch that implements the functionality in Image_Transform. It adds two methods: Image_Transform::scaleMaxX($max_x) and Image_Transform::scaleMaxY($max_y) http://worksintheory.org/files/pear/ImageTransform-scalemax-20051117.diff

Comments

 [2006-03-07 21:26 UTC] jausions
Thank you for taking the time to report a problem with the package. This problem may have been already fixed by a previous change that is in the CVS of the package. Please log into CVS with: cvs -d :pserver:cvsread@cvs.php.net:/repository login and check out the CVS repository of this package and upgrade cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/Image_Transform pear upgrade pear/Image_Transform/package2.xml or pear upgrade pear/Image_Transform/package.xml If you are able to reproduce the bug with the latest CVS, please change the status back to "Open". Again, thank you for your continued support of PEAR. Check CVS for new fitX() and fitY() methods.
 [2006-03-10 19:03 UTC] gauthierm
The fitX() and fitY() methods do exactly what the scaleMaxX() and scaleMaxY() methods do. We've tested this in our code. I'm marking this bug as closed.