Image resize class

They have: 173 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

He has: 1,502 posts

Joined: Sep 2006

phpThumb would be your best bet.

demonhale's picture

He has: 3,278 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

He has: 1,502 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,278 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...

They have: 173 posts

Joined: Feb 2005

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

Busy's picture

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.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.