This Java language ColdFusion extension tag (that is, a CFX) for Adobe ColdFusion, CFX_ImageInfo, has one simple purpose: It returns information such as width, height, colors, comments, compression type, dpi, frames, etc about graphic files. The file formats it handles include TGA, GIF*, JPG, PNG, BMP, PCX, TIFF, and PSD. Works with all Java versions of ColdFusion. You can either ask it to return information about a single file or about all (known graphic) files in a specified folder. When using the folder option you can also specify a filter mask. The source code to this program is included as open source. It has been tested under Windows only at the moment. If you have compiled and used it on other platforms please feel free to drop a note. You can either ask it to return information about a single file or about all (known graphic) files in a specified folder. When using the folder option you can also specify a filter mask. *New 2012 version written in Java. Works on 64-bit and 32-bit ColdFusion servers. Also includes original 32-bit C++ version.* See github.com/lasellers for ongoing open-source development of this software.
This Java language ColdFusion extension tag (that is, a CFX) for Adobe ColdFusion, CFX_AudioInfo, will scan either a single file or an entire folder, looking for audio files of mp3, wav, au and midi format. From these files it will gather up all manner of information such as song title, author, compression type, bitrate, song length, etc. The source code to this program is included as open source. It has been tested under Windows only at the moment. If you have compiled and used it on other platforms please feel free to drop a note. *New 2012 version written in Java. Works on 64-bit and 32-bit ColdFusion servers. Also includes original 32-bit C++ version.* See github.com/lasellers for ongoing open-source development of this software.
This is a replacement part for Scott Howard\'s Macromedia ColdFusion tag CFX_ImgInfo, which was written circa 1997A.D. This new, high-speed tag is based on the Intrafoundation tag CFX_ImageInfo (no relation to Howard\'s tag). It returns ONLY the width, height and size of any of the following graphic file formats: TGA, GIF, JPG, PNG, BMP, PCX, TIFF, and PSD. Works with ColdFusion version 4.0.1 and up. With complete c/c++ source code. See the CFX_ImageInfoSE homepage for details.
I'm doing a slow audit and rebuild of the ColdFusion CFX tags and COM objects on the site. The C++ tags CFX_ImageInfo and CFX_AudioInfo have work-alike java versions called CFX_ImageInfoMX and CFX_AudioInfoMX respectively which at first glance seem to work as-is on modern 64-bit systems. (Though I am very tempted to rename them as the "MX" version of ColdFusion is long gone now.) FYI.
Just installed to try a bit, 'cause i need a tool, getting the DPI of an image, not relying on EXIF. Works, where EXIF doesn't. But with the example pics, i get strange results. DPI is 0 or 2300000, where photoshop tells me it's 72. Any idea?
I have a template that loops over a directory structure and uses CFX_IMageInfo to retrieve information for the images in the directory. If the image height is greater than the width I cfexecute to irfanview and rotate the image. Then I move the file using cffile and delete the directory. The problem is that I can`t delete the directory after it has been emptied, even manually. I get a sharing violation and I am told that the directory is in use. I have commented out portions of my code and am left to conclude that CFX_ImageINfo is somehow causing Cold Fusion to leave the directory in use. Restarting CF releases the directory and I can delete it. I checked CF administrator and I am am NOT keeping the CFX_IMageInfo library loaded. We are running CF 4.5 and the server is Windows 2000 with IIS. Any tips, comments??
test
Nevermind. Classic example of RTFM (in source code, cause the index.cfm wouldn't load without correct configuration of the CFXtag)
Has anyone a (detailed) installation manual. For some reason I can't get it to work. The error is alway the same: The CFX custom tag 'CFX_ImageInfoMX' was not found in the custom tag database. I added it in the CF Admin, copied the files to the correct location(s). B.t.w. this is the first time I worked with Java CFX under CFMX v6.1. Help is much appreciated
Hi there; I'm trying out CFX_IMAGEINFO. I can't upgrade to CFX_IMAGEINFOMX since my host doesn't have it. I'm wondering how I go about ADDING comments to an image. Any help would be greatly appreciated. Thanks.
I found the problem, I needed to add the CFusionMX\cfx\java path to the JVM settings in CF Administrator
Hello, I am confused as to how to install this custom tag. I have tried all kinds of things to no avail. I am not a Java man by nature so this is new for me. Can anyone explain the set up (i.e. where to copy files, what to put in CF Administrator, etc)
It doesn`t show up after I install it in ColdFusion Admin. Help!
It doesn`t show up after I install it in ColdFusion Admin. Help!
Fixed it! The source code was graciously included with the custom tag. In the request.cpp file you make a call to ImageInfo. ImageInfo declares a HANDLE called hFolder that never gets released. I added `FindClose(hFolder);` to the end of ImageInfo function and recompiled. I had to restart the cold Fusion server for it to recognize the new dll file but the problem is solved!
I have a template that loops over a directory structure and uses CFX_IMageInfo to retrieve information for the images in the directory. If the image height is greater than the width I cfexecute to irfanview and rotate the image. Then I move the file using cffile and delete the directory. The problem is that I can`t delete the directory after it has been emptied, even manually. I get a sharing violation and I am told that the directory is in use. I have commented out portions of my code and am left to conclude that CFX_ImageINfo is somehow causing Cold Fusion to leave the directory in use. Restarting CF releases the directory and I can delete it. I checked CF administrator and I am am NOT keeping the CFX_IMageInfo library loaded. We are running CF 4.5 and the server is Windows 2000 with IIS. Any tips, comments??
You've tried the latest version? Check first that the tag returns back a query?
moved to forums.
Arrgh, could you please delete this post from public. I was not ment for it. Sorry Thorsten
Hi, I have some trouble with your tag. I moved to a cfmx-account at crystaltech. I do have some trouble with the cfx_imageinfo tag. It does not give the width back. Do you have a suggestion? Below you see the error I get. Kind regards Thorsten eilers@holz24.de Element WIDTH is undefined in MAINLINEINFO. The error occurred in C:\Inetpub\timberbook\customtags\setimages.cfm: line 45 43 : 44 : 45 : 46 : 47 :
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
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
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.
Just noticed you said 2.2. The last posted version was 2.4. I really don`t recall if there were any fixes concerning that issue, but you might want to try it out. --min
Haven`t touched the code since the latest posted version, so no. (We moved on to using COM objects instead of CFXs primarily because you can use the same object in both ColdFusion and ASP environments.) Perhaps... I might have time to clean up a COM that can be released to the public soon. Maybe. Sorry.
Regarding the CFX_ImageInfo tag... do you know if the Concurrency issues have been fixed since the problem in version 2.2 (July 2000)? Thanks, Sharon
Hello. Been rather busy of late so didn't seen your post till now. Sorry. But that's also the thing I love most about open source -- sometimes problems can fix themselves (sort of). Anyway, will fix the bug in the version downloadable on this site and add you the credits (like I do everyone that posts a bug fix.) Thanks. Sorry about the hassle though. --min