pyovchevski/php-image-magician 问题修复 & 功能扩展

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

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

pyovchevski/php-image-magician

Composer 安装命令:

composer require pyovchevski/php-image-magician

包简介

PHP Image Magician

README 文档

README

Image manipulation at it's finest.

home page @ http://phpimagemagician.oberto.co.nz/

Features

  • Quick and easy resize - Resize to landscape, portrait, or auto
  • Easy crop
  • Add text
  • Watermarking
  • Shadows and reflections
  • Transparency support
  • Read EXIF metadata
  • Borders, Rounded corners, Rotation
  • Filters and effects
  • All operations (eg. filter, effects) can be stacked
  • Image sharpening
  • Image type conversion
  • BMP support
  • PSD reader support (limited)

Resize & Crop Example

// Include PHP Image Magician library
require_once('php_image_magician.php');

// Open JPG image
$magicianObj = new imageLib('racecar.jpg');

// Resize to best fit then crop
$magicianObj -> resizeImage(100, 200, 'crop');

// Save resized image as a PNG
$magicianObj -> saveImage('racecar_small.png');

Watermark Example

// Include PHP Image Magician library
require_once('php_image_magician.php');

// Open JPG image
$magicianObj = new imageLib('racecar.jpg');

// Add watermark to bottom right, 50px from the edges
$magicianObj -> addWatermark('monkey.png', 'br', 50);

// Save watermarked image as a PNG
$magicianObj -> saveImage('racecar_small.png');      

Check out the documentation for more examples.

Contributions

If you'd like to contribute features or bug fixes to the project, please be my guest.

If you found this code useful, or maybe it saved you a tonne of time, and would like to contribute in other ways, all donations go towards hosting and future developement.

BTC: 1BacitzfnJashc2DYKeiAQzr9tWH5en9uM
ETH: 0x13E9C47b3158583271a471Cb76C8ef6285c925Eb
LTC: LWcauH9vxcGt3mJGgBWfxCYXniLLSWESyu

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-01-23