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

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

WBOY
Release: 2016-06-20 12:52:40
Original
1180 people have browsed it

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');
Copy after login

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template