Skip to main content
WolfShade
Legend
August 14, 2012
Answered

Another CFIMAGE question

  • August 14, 2012
  • 1 reply
  • 639 views

Hello, everyone.

I've got the CFIMAGE action="writeToBrowser" working, now I just have one more question in regards to this particular project.

How do I resize the image?

Here is what I have, so far:

<cfinvoke component="components.announce" method="getFile" returnvariable="getFile">

  <cfinvokeargument name="docID" value="#qry.DocumentID#">

</cfinvoke>

<p><div style="float:left;"><cfimage action="writeToBrowser" source="#getFile#"></div>#some text#</p>

The image is 290x160, and I'd like to scale it down, a bit.  How could I do that?

Thank you,

^_^

    This topic has been closed for replies.
    Correct answer Miguel-F

    Have you tried the ImageResize function?

    1 reply

    Miguel-F
    Inspiring
    August 14, 2012

    Doesn't cfimage allow you to resize as well?

    WolfShade
    WolfShadeAuthor
    Legend
    August 14, 2012

    I've been looking at the documentation for CFIMAGE and I'm not seeing it for files created via BLOB.  I think you can use ImageNew() for files that exist on the web server, but I tried that with a BLOB file, and it isn't working.

    Thank you,

    ^_^

    Miguel-F
    Miguel-FCorrect answer
    Inspiring
    August 14, 2012

    Have you tried the ImageResize function?