定制 cent4auka/rtimage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cent4auka/rtimage

Composer 安装命令:

composer require cent4auka/rtimage

包简介

Resize tool image

README 文档

README

Resize tool image

Installing via Composer

If you do not already have Composer installed, you may do so by following the instructions at getcomposer.org. On Linux you'll run the following commands:

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Please refer to the Composer Documentation if you encounter any problems or want to learn more about Composer usage.

If you had Composer already installed before, make sure you use an up to date version. You can update Composer by running composer self-update.

With Composer installed, you can install Yii by running the following commands under a Web-accessible folder:

composer require "cent4auka/rtimage:~1.0"

Usage

$image = new \ResizeTool\Image($filePath);
$image->resize(100, 100);
$image->save();

// or
 
$image = new \ResizeTool\Image($originFilePath);
$image->resize(100, 100)
	->save($resultFilePath);

Methods

$image = new \ResizeTool\Image($filePath);

// methods of image:
$image->setBackgroudColor(0xFFFFFF)
$image->resize(100, 100);
$image->crop(400, 0, 300, 300)
$image->cropCenter(300, 300)

$image->save();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固