Jump to:

23581 Posts in 19403 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » Return GD generated Image

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

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

Page: 1
Go to End
Author Topic: 770 Views
  • Hypnus
    Avatar
    Community Member
    11 Posts

    Return GD generated Image Link to this post

    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.

  • dompie
    Avatar
    Community Member
    88 Posts

    Re: Return GD generated Image Link to this post

    Why not useing the buildin SilverStripe Image Class?

    770 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.