Forums

You may post here on any subjects related to this site or the software therein. (Most everything on this site is tied into the forums so that you may leave or post comments about it.)

   

CFX_ImageInfoSE - I can get W&H; but not Size

   From: Sean
   Date: May 20 2003 11:58 AM
I have a pic gallery application and I want to insert the pic`s WxH and size on upload. I get W&H; just fine but for some reason Size is not working. The tag works just fine on a specific image. I`m probably missing something easy, any help appriciated.

Code:


<CF_MagickTag action="convert" inputtype="file" inputfile="#application.gal#/#Hidden_Val#/#NImgURL1#"
outputType="file" outputFile="#application.gal#/#Hidden_Val#/#NImgURL1#">
<CF_MagickAction action="Geometry" width="#Width#" height="5000" percent="no" scaleIf="larger">
</CF_MagickTag>
<CF_MagickTag action="convert" inputtype="file" inputfile="#application.gal#/#Hidden_Val#/#NImgURL1#"
outputType="file" outputFile="#application.gal#/#Hidden_Val#/t_#NImgURL1#">
<CF_MagickAction action="Geometry" width="150" height="100" percent="no" scaleIf="larger">
</CF_MagickTag>

<CFX_ImageInfoSE FILENAME="#application.gal#/#Hidden_Val#/#NImgURL1#" ERROR="Error">

<cfquery name="CreateDocumentRecord" datasource="#application.DSN#">
INSERT INTO Pictures (Filename, GalleryID, Gallery, Comment, Datepublished, Hits, UploadedBy, Filesize, Dimensions)
VALUES (`#NImgURL1#`, `#Hidden_Val#`, `#Gallery#`, `#Comment1#`, #Now()#, `1`, `#UploadedBy#`, `#ImageInfoSE.Size#`, `#ImageInfoSE.Width# x #ImageInfoSE.Height#`)
</cfquery>

RE:CFX_ImageInfoSE - I can get W&H; but not Size

   From: Lewis Sellers
   Date: May 23 2003 11:52 PM
Hm. Well, I originally made that tag as a favor for someone for use in a commercial product, so I recall testing it fairly throughly. Though that was the ... CF4(?) era.

What version of CF are you using? Oh. And how big is the hard drive it`s running on? (I don`t *think* that should matter, but... it is an old tag.)

I haven`t had CF installed for a few months so I can`t readily check it out. (Don`t particularly want to install it either. CF and I left each other on bad terms. ;)

--min


RE:CFX_ImageInfoSE - I can get W&H; but not Size

   From: Sean
   Date: May 25 2003 10:23 AM
I think it`s time for a CF reconsiliation! :)
My version is CF 4.5 with 500MB free on the CF driver and 6.5GbB free on the drive where the image is stored. The image size ranges but mostly under 200k.

I`m guessing it has to do with how my code is trying to use ImageInfoSE. I`ll try moving around a few things and see what I get.

Nice work on SE though... it`s alot faster then the original
Copyright © 1997-2006 by Lewis A. Sellers.        Login