2017 © Pedro Peláez
 

silverstripe-module imagick

Adds additional image manipulation functionality to SilverStripe.

image

sam-costigan/imagick

Adds additional image manipulation functionality to SilverStripe.

  • Monday, August 31, 2015
  • by Sam-Costigan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

______ __ __
/ | / | / |
$$$$$$/ _____ ____ ______ ______ $$/ _______ $$ | __ $$ | / \/ \ / \ / \ / | / |$$ | / | $$ | $$$$$$ $$$$ | $$$$$$ |/$$$$$$ |$$ |/$$$$$$$/ $$ |/$$/ $$ | $$ | $$ | $$ | / $$ |$$ | $$ |$$ |$$ | $$ $$<
_$$ |
$$ | $$ | $$ |/$$$$$$$ |$$ __$$ |$$ |$$ _____ $$$$$$ \ / $$ |$$ | $$ | $$ |$$ $$ |$$ $$ |$$ |$$ |$$ | $$ | $$$$$$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$$ |$$/ $$$$$$$/ $$/ $$/ / __$$ |
$$ $$/
$$$$$$/, (*1)

Imagick Extension for SilverStripe

Requires a SilverStripe 3.* install and PHP Imagick configured for your PHP install., (*2)

On ubuntu, this was as easy as:, (*3)

sudo apt-get install php5-imagick
sudo php5enmod imagick

followed by restarting apache., (*4)

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

  • 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., (*6)

The Versions

31/08 2015

dev-master

9999999-dev https://github.com/Sam-Costigan/imagick

Adds additional image manipulation functionality to SilverStripe.

  Sources   Download

BSD-3-Clause

The Requires

 

by Sam Costigan

silverstripe imagick