PHP是否有任何良好的图像处理API(ImageMagick替代品)?

My host (wooservers) does not have ImageMagick installed on their shared servers so I was wondering if there was any image manipulation library/plugin I could use?

(Mainly to watermark GIF animations.)

As the only way I've found to watermark GIF animations was through ImageMagick

My host does not have ImageMagick installed on their shared servers. So I was wondering if there was any other way to use ImageMagick-like capabilities to watermark animated GIFs?

(Maybe like a web-service that allows me to send them the image with specifications on how to process the image, and they do the processing and I get my image back? Something of that sort? Which I believe is called an API?)

I just switched webhosts, that supported ssh terminal access and ImageMagick. Thanks

Try WideImage. It's pretty easy to use.

try zebra-image

LINK HERE

this is very easy to use and stabile for development


Enjoy :)

You should take a look at Intervention . It's one of the best PHP image libraries I've used and can utilize both GD and Imagick as drivers.

Per the documentation, you can create watermarks like so:

// create new Intervention Image
$img = Image::make('public/foo.jpg');

// paste another image
$img->insert('public/bar.png');

// create a new Image instance for inserting
$watermark = Image::make('public/watermark.png');
$img->insert($watermark, 'center');

// insert watermark at bottom-right corner with 10px offset
$img->insert('public/watermark.png', 'bottom-right', 10, 10);