views:

313

answers:

3

I need some PHP classes that deal with image processing in a good manner. I have made a thumbnail creator myself but the end result quality is just horrible.

Is it also possible to let PHP convert and save all images to one type. For example take an image(jpg,png,gif), compress it, resize it, and save as png.

Can anyone recommend some good classes for this.

A: 

You can look into the php gd library, or imageMagick, which has bindings for php.

Ikke
Should I write this from scratch? Are there no classes available online that have these functions build in already?
Saif Bechan
Oh yeah I have bot gd and imageMagick installed.
Saif Bechan
You can't even imagine how **many** classes available online, @SaifJust google for PHP image resize. though its up to you - to write it from scratch or use ready made one
Col. Shrapnel
Can you recommend one?
Saif Bechan
A: 

You can take a look at this one
http://shiftingpixel.com/2008/03/03/smart-image-resizer/

Col. Shrapnel
This is still not completely what I want. I don't see the option of converting the different file formats into one.
Saif Bechan
@Saif actually this script does far more than you even imagine to expect. But being too picky you just prove my point: noone can bring you what you want. So, good luck in search.
Col. Shrapnel
Thank you for your time
Saif Bechan
A: 

If you have access to command-line i'd recommend image magic. The comman-line version has the advantage that it includes several features for batch processing.

elias
Sorry I want to do this in PHP
Saif Bechan