Is there some script (better if php), which can do some operations like?
- resizing
- reduce/increase lightness
- change contrast
- change quality
Or some api's, which can help.
Thanks.
Is there some script (better if php), which can do some operations like?
Or some api's, which can help.
Thanks.
I used this one recently and it worked really well for me, http://pear.php.net/package/Image_Transform
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.
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.