gdaws/imageresizer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gdaws/imageresizer

Composer 安装命令:

composer require gdaws/imageresizer

包简介

High-level image resizing library

README 文档

README

High level image resizing library for PHP 5.3+

Usage example:

use Gdaws\ImageResizer\ResizerFacade;
use Gdaws\ImageResizer\Exception\ImageResizerException;

$resizer = new ResizerFacade();

try {

    $resizer->resize('in.jpg', 'out.jpg', array(
        "mode" => "crop",
        "width" => 100,
        "height" => 100,
        "quality" => 80
    ));
}
catch(ImageResizerException $exception) {

    echo $exception->getMessage();
}

Crop Mode

Scale and then crop the image.

Max Mode

Scale the image to tightly fit the output dimensions while preserving the aspect ratio.

Stretch Mode

Resize the image exactly to the dimensions specified.

Common Settings

These are common settings that affect the output image:

  • width of image in pixels. The value must be greater than 0.
  • height of image in pixels. The value must be greater than 0.
  • quality sets the compression level. Accepts a value between 0 and 100.

It's possible to only specify one of the dimensions and let the resizer calculate the other dimension using the source image's aspect ratio.

统计信息

  • 总下载量: 114
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固