So, figured out that it's not an issue with ImageRead(). It's more an Issue 
with how the image gets generated.
What I'm trying to do is to create a PDF Document with a bunch of charts in 
it...

What I'm trying to do is to save the chart(s) to a file
This is just looping a buch of records and I store it away in an Array so I 
can delete the jpg's after the pdf is done...

        <cfchart
                NAME="#sChartName[iCount]#"
                FORMAT="jpg"
                FONTSIZE="9"
                CHARTHEIGHT="#iChartHeight#"
                CHARTWIDTH="1000"
                SHOWBORDER="yes"
                show3D="#sShow3D#"
                DATABACKGROUNDCOLOR="antiquewhite">
        <cfcharttitle
                FONTSIZE="20"
                FONTBOLD="yes"
                TITLE="#sgTitle#">
        <cfchartlegend
                FONTSIZE="14"
                FONTBOLD="yes">
        <cfchartseries
                ....
                ....>
       </cfchart>

and with <cffile> I save the files in the /tmp
<cffile action="write" file="/tmp/#sChartName[iCount]#.jpg" 
output="#sChartName[iCount]#" />

======
This obviously don't generate a proper Image file for me.

Does anyone have an idea how to do this "the proper way" ?

/Mats/

On Friday, August 16, 2013 11:26:13 AM UTC+2, Mats Stromberg wrote:
>
> Simple test code trying to get width and height from one jpg file..
>
> <cfset objImg = ImageRead("/tmp/VEEVA_LATAM_IDX_DBS519.jpg") />
> <cfoutput>#ImageGetWidth(objImg)# - #ImageGetHeight(objImg)#</cfoutput>
>
> Generates a Runtime Error
>
> Type Expression
> Function imageread
> Tag Context CFSET (/opt/oracle/OpenBD/webapps/openbd/otr/abcd.cfm, 
> Line=1, Column=1)
> Source 
>
> 1: <cfset objImg = ImageRead("/tmp/VEEVA_LATAM_IDX_DBS519.jpg") />
> 2: <cfoutput>#ImageGetWidth(objImg)# - #ImageGetHeight(objImg)#</cfoutput>
> 3: 
>
> ^ Snippet from underlying CFML source
>
> This is ruin on a Build from 2013-07-02
>
>
> Regards,
> Mats
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to