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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Change background colour of CMSThumbnail


Go to End


987 Views

Avatar
novaweb

Community Member, 116 Posts

22 January 2013 at 3:04pm

Hello Strippers!

I am trying to work on an image gallery for 3.0.X - This gallery I've built utilises $CMSThumbnail for the preview image in the gallery.

I assume GD is used to create and save this thumbnail - could somebody please let me know if the background of the saved image can be changed from #FFF to say... #CCC? As it is, all photos automatically have a white background and this is not a border or padding, it is actually part of the saved image.

Thank you!