homeservicesportfoliocontactwebsite design tutorials
 

 

 
 

To the index

Images

  • How can I obtain the height and width of an uploaded image?
  • Is there a custom tag or applet for use in generating charts and graphs?
  • Why do image uploads using cffile not work when using a browser on a Macintosh?
  • Beginner

    How can I obtain the height and width of an uploaded image?

    Use CF_Img. It retrieves the width and height for both gif and jpgs. It works by dynamically inserting the width and height parameters into an IMG tag.

    Alternatively, download CFX_ImageInfo SE (Special Edition).

    A third option is CFX_GIFGD by Jukka Manner

    to question

    Advanced

    Is there a custom tag or applet for use in generating charts and graphs?

    http://www.ve.com/ KavaChart
    http://www.corda.com/ PopChart
    http://www.softwarefx.com/ ChartFX Internet Edition
    http://www.cfxgraphicsserver.com/
    http://www.defusion.com/articles/index.cfm?ArticleID=54
    http://www.defusion.com/articles/index.cfm?ArticleID=58

    to question

    Why do image uploads using cffile not work when using a browser on a Macintosh?

    Macintosh browsers (IE for the Mac) may append a space to the filename, which causes the image upload to fail. Adding a TRIM(filename etc) to the FILEFIELD attribute seems to solve the problem.

    <cffile
       destination="#request.Folder#"
       action="UPLOAD"
       nameconflict="MAKEUNIQUE"
       FILEFIELD="#Trim(form.Filename)#"
       accept="image/*">

    to question