Re: cfx_image or cfximage
Hey Mike, Perhaps knowing what you are planning on doing with these image tags will help us guide you ;-) There are other options to those tagsJava comes to mind...faster and free...all depends on what you're trying to do. For example if you simply want to re-size imagesuse Java...I'll give you the code!! HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218229 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
Well, let's see. Right now, here's what I use the tag for. I have a user upload a picture. Then, I rename the picture to a random filename. Next, I use cfximage to resize that image to 4 different sizes and store the output of each of those sizes to an appropriate name: filenameT, filenameS, filenameM, filenameL. I figured I would do the image processing ahead of time instead of on the fly because then it's only a web request for those images later on. I don't *think* I'm going to get any more advanced than that. As far as formats, I will allow uploads of jpg or gif. Any thoughts? Thanks, Mike Bryan Stevenson wrote: Hey Mike, Perhaps knowing what you are planning on doing with these image tags will help us guide you ;-) There are other options to those tagsJava comes to mind...faster and free...all depends on what you're trying to do. For example if you simply want to re-size imagesuse Java...I'll give you the code!! HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218234 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
Somehow I missed the post from Bryan the first time, but Bryan, can you post the Java code to resize an image anyway? I'd like to have this for a project I'm starting in a couple of weeks. Keep in mind I'm pretty much a Java newbie Thanks, Ray Mike Soultanian wrote: Well, let's see. Right now, here's what I use the tag for. I have a user upload a picture. Then, I rename the picture to a random filename. Next, I use cfximage to resize that image to 4 different sizes and store the output of each of those sizes to an appropriate name: filenameT, filenameS, filenameM, filenameL. I figured I would do the image processing ahead of time instead of on the fly because then it's only a web request for those images later on. I don't *think* I'm going to get any more advanced than that. As far as formats, I will allow uploads of jpg or gif. Any thoughts? Thanks, Mike Bryan Stevenson wrote: Hey Mike, Perhaps knowing what you are planning on doing with these image tags will help us guide you ;-) There are other options to those tagsJava comes to mind...faster and free...all depends on what you're trying to do. For example if you simply want to re-size imagesuse Java...I'll give you the code!! HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218235 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
why dont ya just use mossimos cfc? http://www.olimpo.ch/tmt/cfc/tmt_img/ ~Dave the disruptor~ Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time. From: Ray Champagne [EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 12:04 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfx_image or cfximage Somehow I missed the post from Bryan the first time, but Bryan, can you post the Java code to resize an image anyway? I'd like to have this for a project I'm starting in a couple of weeks. Keep in mind I'm pretty much a Java newbie Thanks, Ray Mike Soultanian wrote: Well, let's see. Right now, here's what I use the tag for. I have a user upload a picture. Then, I rename the picture to a random filename. Next, I use cfximage to resize that image to 4 different sizes and store the output of each of those sizes to an appropriate name: filenameT, filenameS, filenameM, filenameL. I figured I would do the image processing ahead of time instead of on the fly because then it's only a web request for those images later on. I don't *think* I'm going to get any more advanced than that. As far as formats, I will allow uploads of jpg or gif. Any thoughts? Thanks, Mike Bryan Stevenson wrote: Hey Mike, Perhaps knowing what you are planning on doing with these image tags will help us guide you ;-) There are other options to those tagsJava comes to mind...faster and free...all depends on what you're trying to do. For example if you simply want to re-size imagesuse Java...I'll give you the code!! HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218237 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
aa...because I didn't know it existed. I'll check it out. dave wrote: why dont ya just use mossimos cfc? http://www.olimpo.ch/tmt/cfc/tmt_img/ ~Dave the disruptor~ Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time. From: Ray Champagne [EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 12:04 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfx_image or cfximage Somehow I missed the post from Bryan the first time, but Bryan, can you post the Java code to resize an image anyway? I'd like to have this for a project I'm starting in a couple of weeks. Keep in mind I'm pretty much a Java newbie Thanks, Ray Mike Soultanian wrote: Well, let's see. Right now, here's what I use the tag for. I have a user upload a picture. Then, I rename the picture to a random filename. Next, I use cfximage to resize that image to 4 different sizes and store the output of each of those sizes to an appropriate name: filenameT, filenameS, filenameM, filenameL. I figured I would do the image processing ahead of time instead of on the fly because then it's only a web request for those images later on. I don't *think* I'm going to get any more advanced than that. As far as formats, I will allow uploads of jpg or gif. Any thoughts? Thanks, Mike Bryan Stevenson wrote: Hey Mike, Perhaps knowing what you are planning on doing with these image tags will help us guide you ;-) There are other options to those tagsJava comes to mind...faster and free...all depends on what you're trying to do. For example if you simply want to re-size imagesuse Java...I'll give you the code!! HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218241 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
Here ya go Mike Ray.3 methods (get file size, get image width/height, resize image). No need to add anythingwill simply work on any MX version (AFAIK) Let me know if you guys need any helpalll you should need is to wrap these ina CFC and call them ;-) Cheers !---(Function: FileSize)-- Date Created: March 12, 2004 Author: Phil Arguments: FileLoc - full path of file (string) required Purpose:Gets the size of a file in bytes Returns:File Size in bytes (numeric) --- cffunction name=FileSize returnType=numeric access=public cfargument name=FileLoc type=string required=Yes cfset jFileIn = CreateObject(java,java.io.File).init(ARGUMENTS.FileLoc) cfreturn jFileIn.Length() /cffunction !---(Function: ImageSize)-- Date Created: November 28, 2003 Author: Bryan Arguments: FileLoc - full path of image to get details for (string) required Purpose:returns file width/height Returns:ImageInfo structure with ImgWidth/ImgHeight keys --- cffunction name=ImageSize returnType=struct access=public cfargument name=FileLoc type=string required=Yes cfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc) cfset ImageInfo = StructNew() cfset ImageObject = createObject(java,javax.imageio.ImageIO).read(jFileIn) cfset ImageInfo.ImgWidth = ImageObject.getWidth() cfset ImageInfo.ImgHeight = ImageObject.getHeight() cfreturn ImageInfo /cffunction !---(Function: ThumbIt)-- Date Created: December 1, 2003 Author: Bryan Arguments: FileLoc - full path of image to be thumbnailed (string) required ThumbPrefix - string to append to the filename to name the thumbnail (string) not required ScaleBy - which dimension to scale by W or H (string) required ScaleValue - the measurement of the dimension specified in ScaleBy to use to calculate proper scale (string) required Purpose:shrink an image Returns:N/A --- cffunction name=ThumbIt access=public cfargument name=FileLoc type=string required=Yes cfargument name=ThumbPrefix type=stringrequired=No default= cfargument name=ScaleBy type=string required=Yes cfargument name=ScaleValue type=stringrequired=Yes cfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc) !--- build new file loc and name --- cfset DirPath = GetDirectoryFromPath(ARGUMENTS.FileLoc) cfset FileName = GetFileFromPath(ARGUMENTS.FileLoc) cfset ThumbFileLoc = DirPath ARGUMENTS.ThumbPrefix FileName cfset jFileOut = createObject(java,java.io.File).init(ThumbFileLoc) !--- set dimiensions --- cfset inBufferedImg = createObject(java,javax.imageio.ImageIO).read(jFileIn) cfset ImgWidth = inBufferedImg.getWidth() cfset ImgHeight = inBufferedImg.getHeight() !--- calculate scale --- cfif UCase(ARGUMENTS.ScaleBy) eq W cfset Scale = ARGUMENTS.ScaleValue / ImgWidth cfelseif UCase(ARGUMENTS.ScaleBy) eq H cfset Scale = ARGUMENTS.ScaleValue / ImgHeight /cfif !--- define thumbnail dimensions --- cfset ScaledWidth = (Scale * ImgWidth) cfset ScaledHeight = (Scale * ImgHeight) !--- create image output --- cfset outBufferedImg = createObject(java,java.awt.image.BufferedImage).init(JavaCast(int, ScaledWidth), JavaCast(int, ScaledHeight), JavaCast(int, 1)) !--- create the AffineTransform --- cfset jTransform = createObject(java,java.awt.geom.AffineTransform).init() cfset temp = jTransform.Scale(Scale, Scale) !--- initialize a Graphics2D object --- cfset jGraphics2D = outBufferedImg.createGraphics() !--- draw the thumbnail --- cfset temp = jGraphics2D.drawRenderedImage(inBufferedImg, jTransform) cfset temp = jGraphics2D.dispose() !--- write the thumbnail image to disk --- cfset fileWritten = createObject(java,javax.imageio.ImageIO).write(outBufferedImg, jpg, jFileOut) /cffunction Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com - Original Message - From: Mike Soultanian [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, September 14, 2005 8:57 AM Subject: Re: cfx_image or cfximage Well, let's see. Right now, here's what I use the tag for. I have a user upload a picture. Then, I rename the picture to a random filename. Next, I use cfximage to resize that image to 4 different sizes and store the output of each of those sizes to an appropriate name: filenameT, filenameS, filenameM, filenameL. I figured I would do the image processing ahead of time instead of on the fly because
Re: cfx_image or cfximage
FYIwon't work with TIFFs (but I have code to convert TIFFs into PDFs) ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218249 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
Hmm.. I started doing some research on it and found that Jukka's didn't have very good image quality when resizing images. Do you know the licensing for these products? Is there any at all or are people free to use them in their apps. I also found another one called cfximagecr. That one looks pretty neat, but it costs 180 per server. However, they claim to have really good image conversion quality. thanks, Mike Barney Boisvert wrote: They're totally separate. If I recall correctly, Jukka's a very indepth image processing tag that utilizes it's own command language, while the other one is very simple. I might have that backwards, but I'm pretty sure it's right. I preferred Jukka's because the simple stuff wasn't much harder, but you could do some pretty cool stuff with it if you got down and dirty. cheers, barneyb On 9/12/05, Mike Soultanian [EMAIL PROTECTED] wrote: Does anyone know if the two are related? There is cfximage from gafware.com, and then there's cfx_image from http://www.kolumbus.fi/jukka.manner/ Does anyone know if one is based on the other, or if one is better, etc? Thanks! Mike ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218126 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfx_image or cfximage
They're totally separate. If I recall correctly, Jukka's a very indepth image processing tag that utilizes it's own command language, while the other one is very simple. I might have that backwards, but I'm pretty sure it's right. I preferred Jukka's because the simple stuff wasn't much harder, but you could do some pretty cool stuff with it if you got down and dirty. cheers, barneyb On 9/12/05, Mike Soultanian [EMAIL PROTECTED] wrote: Does anyone know if the two are related? There is cfximage from gafware.com, and then there's cfx_image from http://www.kolumbus.fi/jukka.manner/ Does anyone know if one is based on the other, or if one is better, etc? Thanks! Mike -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217998 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54