Ezilon.com - Target Your Audience, be Seen in Your Region

Image resize class

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.
Sponsor

They have: 178 posts

Joined: Feb 2005

Frankly I'm too lazy to make my own so can anyone recommend a good php class to resize images? I only need to resize JPG the only important thing is

say my picture is 700x600. I'd like to specify a max width/height of 100x100, and it will resize to 100x86 rather than transforming it to 100x100.

Thanks!

SonicMailer Pro - Professional mailing list manager & award-winning email marketing software
Download a FREE 30-day trial today!
Use coupon savemoreon4 and save 10%!

pr0gr4mm3r's picture
ModeratorSponsor

He has: 648 posts

Joined: Sep 2006

phpThumb would be your best bet.

demonhale's picture

He has: 3,257 posts

Joined: May 2005

Also if GD is installed on your server, you should take a look at it's functionalities. GD lib has a bunch of image manipulation available for you...

pr0gr4mm3r's picture
ModeratorSponsor

He has: 648 posts

Joined: Sep 2006

demonhale;217354 wrote: Also if GD is installed on your server, you should take a look at it's functionalities. GD lib has a bunch of image manipulation available for you...

phpThumb makes use of the GD functions and Imagemagick depending on what's installed.

demonhale's picture

He has: 3,257 posts

Joined: May 2005

pr0gr4mm3r;217358 wrote: phpThumb makes use of the GD functions and Imagemagick depending on what's installed.

I concur, although I like to read the code switches to develop my own resize...

Sponsor

They have: 178 posts

Joined: Feb 2005

Which is more efficient - GD or ImageMagick (for image resizing)?

Busy's picture
Modrater

He has: 6,151 posts

Joined: May 2001

Triexa.com;217359 wrote: Which is more efficient - GD or ImageMagick (for image resizing)?

For basic stuff lke what your wanting they would be about the same but IM could be a fraction less code.
IMO IM (ImageMagick) has more power and control for bigger apps. but it comes down to user preference. It's like Mozilla and Opera - both do the same job well but some perfer one over the other.

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...