承接 sam-costigan/imagick 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sam-costigan/imagick

Composer 安装命令:

composer require sam-costigan/imagick

包简介

Adds additional image manipulation functionality to SilverStripe.

README 文档

README

/ | / | / |
$$$$$$/ _____ ____ ______ ______ $$/ _______ $$ | __ $$ | / / \ / \ / \ / | / |$$ | / | $$ | $$$$$$ $$$$ | $$$$$$ |/$$$$$$ |$$ |/$$$$$$$/ $$ |/$$/ $$ | $$ | $$ | $$ | / $$ |$$ | $$ |$$ |$$ | $$ $$<
$$ | $$ | $$ | $$ |/$$$$$$$ |$$ _
$$ |$$ |$$ _____ $$$$$$ \ / $$ |$$ | $$ | $$ |$$ $$ |$$ $$ |$$ |$$ |$$ | $$ | $$$$$$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$$ |$$/ $$$$$$$/ $$/ $$/ / __$$ |
$$ $$/
$$$$$$/

Imagick Extension for SilverStripe

Requires a SilverStripe 3.* install and PHP Imagick configured for your PHP install.

On ubuntu, this was as easy as:

sudo apt-get install php5-imagick
sudo php5enmod imagick

followed by restarting apache.

Once it has been added, you will have access to the following additional Image functions:

  • BlurredImage($radius, $sigma)
    • Blurs an image using the Imagick::blurImage() function
    • @param $radius - The radius of the blur
    • @param $sigma - The standard deviation of the blur
  • ColourTransparentImage($colour)
    • Fully colours an image in a single colour, preserving any opacity
    • @param $colour - A colour string to give the image
  • ColourOverlayImage($colour, $opacity)
    • Overlays a colour on top of an image, with a varying degree of opacity
    • @param $colour - A colour string to give the image
    • How transparent the overlay should be, from 0.0 - fully transparent to 1.0 - a block colour

NOTE: Currently, the $colour parameter only supports strings being passed, eg. "red", "blue", "green" will work, but "#ff0000", "#00ff00" and "#0000ff" will not.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-30