Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Image decorator for grayscaling. Please check.

Go to End

3 Posts   2151 Views


Community Member, 50 Posts

3 March 2011 at 11:19pm

Hello there, I need an image class decorator to show grayscaled images in my template.
Here the code:
It looks ok for me, but don't work and returns nothing in template.
Please check if everything fine there in code.

Carbon Crayon

Community Member, 598 Posts

31 March 2011 at 12:16am

Hi Dab,

here is a tutorial on creating greyscale images (as well as rotating them):

Hope that helps,



Community Member, 70 Posts

19 November 2012 at 5:46pm

Edited: 19/11/2012 5:47pm

hi @dab

I've created an image utility module that includes greyscaling functionality, as well as a few other useful image related methods. I plan to add to it as and when a new requirements come up.

For more information have a look at Web of Talent - Image Utilities Module or on my github page, Gordon Anderson - GitHub - Image Utilities Module