tags:

views:

36

answers:

4

Is there some script (better if php), which can do some operations like?

  1. resizing
  2. reduce/increase lightness
  3. change contrast
  4. change quality

Or some api's, which can help.

Thanks.

A: 

I used this one recently and it worked really well for me, http://pear.php.net/package/Image_Transform

DavidYell
+1  A: 

I used to use ImageMagik for this kind of thing. When I used it, you were restricted to Perl. It seems that there are now two PHP interfaces to the API.

gribflex
Plus, you can always call the executable directly from any language, even if the bindings aren't there (permissions provided).
Pekka
+1  A: 

For most things I use PHP's imageXXXX() functions; they're portable, and pretty much every PHP install I've come across has them available.

For more advanced needs, consider using ImageMagick or some other scriptable image processing; if it doesn't come with a PHP interface, or you cannot install the required extensions, you can always 'shell out'.

Also, caching the processed images is probably a good idea in most situations, unless the output is different every time.

tdammers