sam-costigan / imagick
Adds additional image manipulation functionality to SilverStripe.
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 2
Type:silverstripe-module
pkg:composer/sam-costigan/imagick
Requires
- silverstripe/cms: 3.*
 - silverstripe/framework: 3.*
 
This package is not auto-updated.
Last update: 2025-10-29 15:16:58 UTC
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.