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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Return GD generated Image


Go to End


2 Posts   1420 Views

Avatar
Hypnus

Community Member, 11 Posts

21 December 2010 at 4:21am

Hi guys,

I am trying to display a GD generated image in a template but I am not sure how.
I tried adding a custom controller that generates the image in a img tag (<img src="controller_url_handle">) but it does not work.
The problem is that the image is generated OK but the output has also the HTML Header set by Silverstripe.

Is there a way to output raw data without any headers attached (or only the ones I set) ?

Thanks in advance.

Avatar
dompie

Community Member, 88 Posts

23 December 2010 at 9:57am

Why not useing the buildin SilverStripe Image Class?