Home >Backend Development >PHP Tutorial >PHP图像处理和操作库:Intervention Image

PHP图像处理和操作库:Intervention Image

WBOY
WBOYOriginal
2016-06-20 12:52:401196browse

Intervention Image 是一个 PHP 图像处理和操作库,它提供了一个简单的,易于表达的方式来创建、编辑图片。此包包括了易于和 Laravel 整合的 ServiceProviders 和 Facades。

示例代码:

// open an image file$img = Image::make('public/foo.jpg');// resize image instance$img->resize(320, 240);// insert a watermark$img->insert('public/watermark.png');// save image in desired format$img->save('public/bar.jpg');

项目主页:http://www.open-open.com/lib/view/home/1437227032271

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn