Question
Generate image with CFIMAGE - but need to use img tag to serve the content
I create a new image with cfimage, that already works without
any problems.
But instead of using the action="writetobrowser" I need to be able to use the script inside a img tag:
Example: <img src="myscript.cfm?somedata=iwanttheimagetocreate>
I found one webpage that deals with that problem ( http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/) but the image served to the browser, when using the code below, is of a very low quality and another point is that you can't serve .gif's to the browser.
<cfcontent type="image/jpg" variable="#ImageGetBlob(backgroundimage)#">
Any suggestions/solutions?
Thanks,
Phil
But instead of using the action="writetobrowser" I need to be able to use the script inside a img tag:
Example: <img src="myscript.cfm?somedata=iwanttheimagetocreate>
I found one webpage that deals with that problem ( http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/) but the image served to the browser, when using the code below, is of a very low quality and another point is that you can't serve .gif's to the browser.
<cfcontent type="image/jpg" variable="#ImageGetBlob(backgroundimage)#">
Any suggestions/solutions?
Thanks,
Phil
