Re: Image manipulation in coldfusion - error with tmt_img.cfc
From: Bryan Stevenson [EMAIL PROTECTED] I'd also wait on Massimo to be sure it's the same issue... It's sounds like a problem with the an neadless systems. On the CFC's page there are links pointing to potential fixes: http://www.olimpo.ch/tmt/cfc/tmt_img/ looks the same as what I had dropping my image manip code (same core code as Massimo uses AFAIKthink I may have given it to him too..can't recall) on a headless Linux server. Once again Bryan, even if it uses the same Java APIs, it's NOT the same code, I published the first version of my CFC back in January 2003, long before you. You can take a look at the source and see by yourself (and you will also see why the image quality is better). Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.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:220791 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: Image manipulation in coldfusion - error with tmt_img.cfc
Once again Bryan, even if it uses the same Java APIs, it's NOT the same code, I published the first version of my CFC back in January 2003, long before you. You can take a look at the source and see by yourself (and you will also see why the image quality is better). hehe...no worries Massimonot a credit/plagiarism issueand yer tag is far more complete then mine (and I wrote mine in 2003 as well FYI...although I think it was later in the year)!! ;-) I was just saying that to help Andybecause I was pretty sure the APIs used were the same and that should have meant the error was for the same reason (headless system). All bow before Massimo and his tag...hehe!!! 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:220807 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: Image manipulation in coldfusion - error with tmt_img.cfc
hehe...no worries Massimonot a credit/plagiarism issue Glad to see things clarified (this was the second time here on CF-Talk). I really don't want to sound rude, but I take this sort of things very seriously. Best Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.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:220809 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: Image manipulation in coldfusion - error with tmt_img.cfc
hehe...no worries Massimonot a credit/plagiarism issue Glad to see things clarified (this was the second time here on CF-Talk). I really don't want to sound rude, but I take this sort of things very seriously. Best Yep...sorry about thatI'm so busy right now and was trying to be helpful at the same timeso out came the brain dump of what I could recall at the time (now I see what I said could have been misconstrued) ;-) I would take it pretty seriously as well if someone else took credit for my work...so again...sorry for the confusionjust trying to help Andy. For the record CF-TalkersMassimo and I created our code independantlyand even though I haven't played with his tag...I'm quite sure it's more robust than mine from what I've read (mine is for simple image size retrieval and simple resizing of GIF/JPG files). FYI folksI gave Tony Weeg permission to wrap my 2 methods up in a CFC and make it available to dload somewhere (Tony can ya post the link if it's up)...for free (and of course leaving my code comments in placewouldn't want another issue like this one...hehe). Personally I'm not in the tag or CFC writing/selling game (not saying Massimo is or isn't nor does it matter to me in any way)no time for such small returns...but if I have code that will help someonea posting I go ;-) 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 ~| 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:220815 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
Image manipulation in coldfusion - error with tmt_img.cfc
Massimo... I have a quick question regarding the above CFC. I've set it up and running on my local dev machine (Win XP, CFMX6.1). It works flawlessly. However, when I upload the code to my server and run it, I get the following error: This graphics environment can be used only in the software emulation mode. null The error occurred on line 475. This is line 475 in the cfc file: var jGraphics2D = arguments.imgBuffer.createGraphics(); I know ZERO Java so I can't diagnose this properly but I would guess that it's got something to do with the version of Java or JVM running on our server (some form of Linux and CFMX6.1). Anyone have ideas? Thanks in advance for your help. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220760 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: Image manipulation in coldfusion - error with tmt_img.cfc
Andy...is the live server a headless system (no monitor or graphicsjust a box)? If so there are some arguments in the jvm.config (I think it was that file) file that you need to change. If you can confirm this is your situation I may be able to dig up the changes required. The file needs to be dloaded, modified, uloaded, and CF services cycled for this to fly. This may be difficult in a shared server environment. I'd also wait on Massimo to be sure it's the same issue...but the error looks the same as what I had dropping my image manip code (same core code as Massimo uses AFAIKthink I may have given it to him too..can't recall) on a headless Linux server. 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:220761 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: Image manipulation in coldfusion - error with tmt_img.cfc
Just an update... I seem to recall reading that these CFCs have issues when the server is set to run headless. I checked our cfadmin and it appears that headless is one of the arguments (listed below): -server -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -XX:MaxPermSi ze=128m -XX:+UseParallelGC Is there anything that can be done? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 3:38 PM To: CF-Talk Subject: Image manipulation in coldfusion - error with tmt_img.cfc Massimo... I have a quick question regarding the above CFC. I've set it up and running on my local dev machine (Win XP, CFMX6.1). It works flawlessly. However, when I upload the code to my server and run it, I get the following error: This graphics environment can be used only in the software emulation mode. null The error occurred on line 475. This is line 475 in the cfc file: var jGraphics2D = arguments.imgBuffer.createGraphics(); I know ZERO Java so I can't diagnose this properly but I would guess that it's got something to do with the version of Java or JVM running on our server (some form of Linux and CFMX6.1). Anyone have ideas? Thanks in advance for your help. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220762 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: Image manipulation in coldfusion - error with tmt_img.cfc
Well it looks like ya tracked it down before my reply made it through ;-) Here's what my jvm.config java args look like on the headless machine: java.args=-server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Xbootclasspath/a:{application.home}/lib/webchartsJava2D.jar -Xmx512m -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m -XX:+UseParallelGC A side noteI COULD NOT change the settings via CF Admin as there was some bug that blew out the jvm.config file (or appeared to have made the change but didn't)...so I had to manually change the jvm.config file etc. as per my first reply. 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:220765 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: Image manipulation in coldfusion - error with tmt_img.cfc
Another update. Massimo responded to my email and he provided two sites which list solutions to this problem: http://www.doughughes.net/index.cfm/page-blogLink/entryId-29 http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19252 In case anyone else is having problems. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 3:44 PM To: CF-Talk Subject: RE: Image manipulation in coldfusion - error with tmt_img.cfc Just an update... I seem to recall reading that these CFCs have issues when the server is set to run headless. I checked our cfadmin and it appears that headless is one of the arguments (listed below): -server -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -XX:MaxPermSi ze=128m -XX:+UseParallelGC Is there anything that can be done? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 3:38 PM To: CF-Talk Subject: Image manipulation in coldfusion - error with tmt_img.cfc Massimo... I have a quick question regarding the above CFC. I've set it up and running on my local dev machine (Win XP, CFMX6.1). It works flawlessly. However, when I upload the code to my server and run it, I get the following error: This graphics environment can be used only in the software emulation mode. null The error occurred on line 475. This is line 475 in the cfc file: var jGraphics2D = arguments.imgBuffer.createGraphics(); I know ZERO Java so I can't diagnose this properly but I would guess that it's got something to do with the version of Java or JVM running on our server (some form of Linux and CFMX6.1). Anyone have ideas? Thanks in advance for your help. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220769 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: image manipulation in coldfusion?
What I'm looking for is a way to test the size of an image before its displayed and then resize it if its width exceeds 250px - if 250px or less then it can be left alone. Not sure if tags like Massimo's support that or not. My CFC offers all the basic functionality you need for this, but you have to perform the logic (if exceeds crop, if not let it alone) on your own. In my opinion the best thing to do would be to extend the CFC and put your logic there. This would allow you to first, separate the logic from the core functionality, then it will make easier to update as soon as I will release an updated version of the CFC since you would not change my code directly. Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.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:220517 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: image manipulation in coldfusion?
That's what I tried to do when I wrote version 2.0 of my CFC and I achieved a huge increase in quality. Massimo: Just to let you know... I was playing around with your CFC, and noticed that on some images (usually horizontally oriented ones), bufferedCrop() would throw an outside of raster error. I was able to fix it by modifying the code to check for crop operations that exceed the height of the image. With that said, thanks for putting the code out there. Thanks Roger. I am aware of this but I am still not sure on what's the best way to handle it. Until now I tried to leave out any form of logic from the CFC; in my vision it only has to perform the basic operations, then it's up to the developer to wrap any logic around it (see the post about conditional cropping). The CFC could check if the crop area exceed image's dimensions and adjust the cropping area. I still have mixed feelings about this... It will surely make the CFC more monkey proof, but I don't want a component that try to outsmart its user. Personally I would again, extend the CFC and add a saveCrop method that just wrap the logic around the base method. Feedback and opinions on this would be very much appreciated. Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.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:220518 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: image manipulation in coldfusion?
Put it out there Pete. I'd be interesting in seeing what else you added to it, There's a few things that I wish tmt_img did differently. All in all, it's a great piece of code though. Thank you Massimo. I have a few things I would add/improve for the next version. Please feel free to provide feedback here or contact me directly at: [EMAIL PROTECTED] Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220519 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: image manipulation in coldfusion?
I'm catching up on this thread, but ... I do think CF should have image manipulation. I'm not about to go and learn Java or anything vaguely codey if i can possibly help it, not enough hours in the day and I bought CF for the very reason I would never have to learn Java! Programming at that level just isn't for me, I find it tedious. I have used http://www.imagemagick.org/script/index.php as a work around and it works just fine, and it's free :-) Jenny ~| 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:220531 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: image manipulation in coldfusion?
ImageCR3 does that impeccably. When specifying dimensions for the resize you put 250x100 and it will resize the width down to 250 if greater and/or the height down to 100 is greater than 100 with prefect quality results. Martin http://www.beetrootstreet.com -Original Message- From: Parker, Kevin [mailto:[EMAIL PROTECTED] Sent: 07 October 2005 05:48 To: CF-Talk Subject: RE: image manipulation in coldfusion? Thanks guys - I've been following this with interest as I have a particular resizing challenge at the moment. What I'm looking for is a way to test the size of an image before its displayed and then resize it if its width exceeds 250px - if 250px or less then it can be left alone. Not sure if tags like Massimo's support that or not. Any suggestions please. ++ Kevin Parker Web Services Consultant WorkCover Corporation p: 08 8233 2548 m: 0418 806 166 e: [EMAIL PROTECTED] w: www.workcover.com ++ -Original Message- From: Roger B. [mailto:[EMAIL PROTECTED] Sent: Friday, 7 October 2005 1:53 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? That's what I tried to do when I wrote version 2.0 of my CFC and I achieved a huge increase in quality. Massimo: Just to let you know... I was playing around with your CFC, and noticed that on some images (usually horizontally oriented ones), bufferedCrop() would throw an outside of raster error. I was able to fix it by modifying the code to check for crop operations that exceed the height of the image. With that said, thanks for putting the code out there. -- Roger Benningfield http://admin.support.journurl.com/ http://admin.mxblogspace.journurl.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:220288 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: image manipulation in coldfusion?
It didn't, but I wrote an app on top of tmt_img that does it. If you're interested in my code, shoot me an email. I also extended tmt_img a bit. Pete ~| 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:220296 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: image manipulation in coldfusion?
Massimo's tag has getHeight and getWidth methods. Call those on an image, then check accordingly. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Parker, Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 11:48 PM To: CF-Talk Subject: RE: image manipulation in coldfusion? Thanks guys - I've been following this with interest as I have a particular resizing challenge at the moment. What I'm looking for is a way to test the size of an image before its displayed and then resize it if its width exceeds 250px - if 250px or less then it can be left alone. Not sure if tags like Massimo's support that or not. Any suggestions please. ++ Kevin Parker Web Services Consultant WorkCover Corporation p: 08 8233 2548 m: 0418 806 166 e: [EMAIL PROTECTED] w: www.workcover.com ++ -Original Message- From: Roger B. [mailto:[EMAIL PROTECTED] Sent: Friday, 7 October 2005 1:53 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? That's what I tried to do when I wrote version 2.0 of my CFC and I achieved a huge increase in quality. Massimo: Just to let you know... I was playing around with your CFC, and noticed that on some images (usually horizontally oriented ones), bufferedCrop() would throw an outside of raster error. I was able to fix it by modifying the code to check for crop operations that exceed the height of the image. With that said, thanks for putting the code out there. -- Roger Benningfield http://admin.support.journurl.com/ http://admin.mxblogspace.journurl.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:220302 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: image manipulation in coldfusion?
Put it out there Pete. I'd be interesting in seeing what else you added to it, There's a few things that I wish tmt_img did differently. All in all, it's a great piece of code though. Thank you Massimo. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 6:03 AM To: CF-Talk Subject: Re: image manipulation in coldfusion? It didn't, but I wrote an app on top of tmt_img that does it. If you're interested in my code, shoot me an email. I also extended tmt_img a bit. Pete ~| 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:220306 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: image manipulation in coldfusion?
Well ya weren't following that close KevinI posted CFC methods to check image dimensions AND another to re-sizea couplde of CFIFs and those will get ya what ya want ;-) 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:220359 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: image manipulation in coldfusion?
ImageCR3 does that impeccably. When specifying dimensions for the resize you put 250x100 and it will resize the width down to 250 if greater and/or the height down to 100 is greater than 100 with prefect quality results. as does minelook at the scaleBy attributeensures that dimension is within given size limit 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 ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220360 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: image manipulation in coldfusion?
OK, most of the meat and potatoes of what I'm doing is in this cfscript block. I'm sure that it's possible to encapsulate this in a much neater fashion, I just chose not to. cfscript /* Set some variables that will make it easier to work with file and server paths */ filepath = cffile.serverdirectory \; imgname = cffile.serverfile; fullImgPath = filepath imgname; thumbname = cffile.serverfilename _thumb. cffile.serverfileext; fullThumbPath = filepath thumbname; /* Invoke the image CFC */ imgObj = CreateObject(component, lib.cfc.tmt_img); imgObj.getDimensions(#fullImgPath#); /* Set image width and height as variables to make them easier to work with */ imgwidth = imgObj.getwidth(#fullImgPath#); imgheight = imgObj.getheight(#fullImgPath#); if (imgwidth GT imgheight) { orientation = landscape; } else if (imgwidth LT imgheight) { orientation = portrait; } else { orientation = square; } resizewidth = imgwidth; resizethumbwidth = maxthumbdimension; divide_by_value = (imgheight / imgwidth); if ((imgwidth GTE maxdimension) AND (imgheight GTE maxdimension) AND (imgwidth GTE imgheight)) { resizewidth = maxdimension; resizethumbwidth = maxthumbdimension; diagnostics = diagnostics Landscape, both dimensions larger than max.br; resize = true; } else if ((imgwidth GTE maxdimension) AND (imgheight GTE maxdimension) AND (imgwidth LTE imgheight)) { resizewidth = (maxdimension / divide_by_value); resizewidth = round(resizewidth); resizethumbwidth = (maxthumbdimension / divide_by_value); resizethumbwidth = round(resizethumbwidth); diagnostics = diagnostics Portrait, both dimensions larger than max.br; resize = true; } else if ((imgwidth GTE maxdimension) AND (imgheight LTE maxdimension)) { resizewidth = maxdimension; resizethumbwidth = maxthumbdimension; diagnostics = diagnostics Landscape, width greater than max, height less than max.br; resize = true; } else if ((imgwidth LTE maxdimension) AND (imgheight GTE maxdimension)) { resizewidth = (maxdimension / divide_by_value); resizewidth = round(resizewidth); resizethumbwidth = (maxthumbdimension / divide_by_value); resizethumbwidth = round(resizethumbwidth); diagnostics = diagnostics Portrait, width less than max, height greater than max.br; resize = true; } else { diagnostics = diagnostics Both dimensions smaller than max. [ELSE]br; resize = false; /* Image is smaller than the maxdimension in both dimensions. It won't resize the image, but what about sizing the thumbnail? */ if ((imgwidth GTE maxthumbdimension) AND (imgheight LTE maxthumbdimension)) { /* */ resizewidth = imgwidth; resizethumbwidth = maxthumbdimension; diagnostics = diagnostics Landscape, larger than thumbmax but smaller than max.br; resize = true; } else if ((imgwidth LTE maxthumbdimension) AND (imgheight GTE maxthumbdimension)) { resizewidth = imgwidth; resizethumbwidth = (maxthumbdimension / divide_by_value); diagnostics = diagnostics Portrait, larger than thumbmax but smaller than max.br; resize = true; } else { /* Image smaller than thumbnail in both dimensions. Don't create new thumbnail. */ diagnostics = diagnostics Smaller than thumbmax. [ELSE]br; resize = false; } } /* Doublecheck the portrait/resizewidth = maxthumbdimension bug */ if ((orientation EQ portrait) AND (resizethumbwidth EQ maxthumbdimension)) { resizethumbwidth = (maxthumbdimension / divide_by_value); /* diagnostics = diagnostics Bug trapped!br; */ } if (resize EQ true) { /* Scale down large images using the resizewidth value */ imgObj.resize(fullImgPath, #fullImgPath#, resizewidth); imgObj.resize(fullImgPath, #fullThumbPath#, resizethumbwidth); diagnostics = diagnostics Resize true, Image and thumbnail created.br; } else if ((imgwidth LT maxthumbdimension) AND (imgheight LT maxthumbdimension)) {
Re: image manipulation in coldfusion?
That's what I tried to do when I wrote version 2.0 of my CFC and I achieved a huge increase in quality. Massimo: Just to let you know... I was playing around with your CFC, and noticed that on some images (usually horizontally oriented ones), bufferedCrop() would throw an outside of raster error. I was able to fix it by modifying the code to check for crop operations that exceed the height of the image. With that said, thanks for putting the code out there. -- Roger Benningfield http://admin.support.journurl.com/ http://admin.mxblogspace.journurl.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:220286 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: image manipulation in coldfusion?
Thanks guys - I've been following this with interest as I have a particular resizing challenge at the moment. What I'm looking for is a way to test the size of an image before its displayed and then resize it if its width exceeds 250px - if 250px or less then it can be left alone. Not sure if tags like Massimo's support that or not. Any suggestions please. ++ Kevin Parker Web Services Consultant WorkCover Corporation p: 08 8233 2548 m: 0418 806 166 e: [EMAIL PROTECTED] w: www.workcover.com ++ -Original Message- From: Roger B. [mailto:[EMAIL PROTECTED] Sent: Friday, 7 October 2005 1:53 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? That's what I tried to do when I wrote version 2.0 of my CFC and I achieved a huge increase in quality. Massimo: Just to let you know... I was playing around with your CFC, and noticed that on some images (usually horizontally oriented ones), bufferedCrop() would throw an outside of raster error. I was able to fix it by modifying the code to check for crop operations that exceed the height of the image. With that said, thanks for putting the code out there. -- Roger Benningfield http://admin.support.journurl.com/ http://admin.mxblogspace.journurl.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:220287 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: image manipulation in coldfusion?
Yes, yes, yes - use ImageCR3 if you have the chance. I was going to recommend it myself. I'm sure I haven't seen them all, but ImageCR3 looks FAR better than any other resizing tag out there. I don't know how they do it, but they do it well. Matthew Small Web Developer American City Business Journals 704-973-1045 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 6:03 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? ImageCR3: http://efflare.com/products/cfx_imagecr/ Personal licenses for $75: http://efflare.com/purchase/?personal We never gave it away for free, but we have plenty of happy customers. It is optimized native code, like important parts of Java. High quality output and extensive image format support. If CF user groups want a license, send me a mail. -- CrystalM So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220112 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: image manipulation in coldfusion?
+3 I have used imageCR3 and the quality is awesome, that said as others have pointed out it does require a dll/cfx to be installed Kola -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: 04 October 2005 22:21 To: CF-Talk Subject: Re: image manipulation in coldfusion? now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). Charlie...buddyfind my code in the archives...straight CFC...and FREE...I can only try and help so much!! ;-) 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 ~ ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220113 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: image manipulation in coldfusion?
Anyone have imageCR3 setup on a shared hosting environment? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 9:00 AM To: CF-Talk Subject: RE: image manipulation in coldfusion? +3 I have used imageCR3 and the quality is awesome, that said as others have pointed out it does require a dll/cfx to be installed Kola -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: 04 October 2005 22:21 To: CF-Talk Subject: Re: image manipulation in coldfusion? now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). Charlie...buddyfind my code in the archives...straight CFC...and FREE...I can only try and help so much!! ;-) 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:220115 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: image manipulation in coldfusion?
That is the question :) if your host is happy to install it then its not a problem , if he is or you are on Linux then you will probably better off using one of the free alternatives such as Bryan's (some one was listening ;-)) or the Alagad image component which I've also heard great things about. Kola HTH -Original Message- From: Tim Laureska [mailto:[EMAIL PROTECTED] Sent: 05 October 2005 13:23 To: CF-Talk Subject: RE: image manipulation in coldfusion? Anyone have imageCR3 setup on a shared hosting environment? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 9:00 AM To: CF-Talk Subject: RE: image manipulation in coldfusion? +3 I have used imageCR3 and the quality is awesome, that said as others have pointed out it does require a dll/cfx to be installed Kola -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: 04 October 2005 22:21 To: CF-Talk Subject: Re: image manipulation in coldfusion? now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). Charlie...buddyfind my code in the archives...straight CFC...and FREE...I can only try and help so much!! ;-) 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:220117 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: image manipulation in coldfusion?
Bryan... The HoF site is down. Care to share that code via email or a straight link? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 7:01 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? We use imageCR3 and love it. I only wish it was java based so we could use it on linux. -e Once againmy code is Java based and FREE (not as sophisticated as imageCR3but original poster doesn't need the fancy stuff) OK...I'm done talking to myself ;-) 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 ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220118 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: image manipulation in coldfusion?
If there a difference in quality or control in the personal version vs. the full version? Or just the license? I'm only looking at using this for a personal site right now but may expand it later. Is there a way to upgrade the license to the full version or would I just have to buy from scratch? John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 6:03 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? ImageCR3: http://efflare.com/products/cfx_imagecr/ Personal licenses for $75: http://efflare.com/purchase/?personal We never gave it away for free, but we have plenty of happy customers. It is optimized native code, like important parts of Java. High quality output and extensive image format support. If CF user groups want a license, send me a mail. -- CrystalM So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220126 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: image manipulation in coldfusion?
The personal/non-commercial version differs only by license. You get the same download and binary as commercial customers. You can upgrade to a commercial license for the difference in cost between these license types. The same upgrade policy applies for upgrades to future versions of ImageCR, eg. ImageCR4. -- CrystalM If there a difference in quality or control in the personal version vs. the full version? Or just the license? I'm only looking at using this for a personal site right now but may expand it later. Is there a way to upgrade the license to the full version or would I just have to buy from scratch? John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 6:03 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? ImageCR3: http://efflare.com/products/cfx_imagecr/ Personal licenses for $75: http://efflare.com/purchase/?personal We never gave it away for free, but we have plenty of happy customers. It is optimized native code, like important parts of Java. High quality output and extensive image format support. If CF user groups want a license, send me a mail. -- CrystalM So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220127 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: image manipulation in coldfusion?
.and for those that care (Tony got his offlist)here's the FREE code I was on about yesterday.enjoy!! !---(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 !---(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 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 ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220128 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: image manipulation in coldfusion?
Bryan, How is the quality on the resizes for that? I've used some java stuff like that before and had issues with the quality. Things seemed to come out a little distorted. From what I can see in the component, it doesn't seem like there's any kind of argument for the quality. Let me know if you've had similar experiences. For some of the people I've tried doing this for, they're artists and bands and people who are a little more particular about the resize quality so I really need it to be top notch. Let me know. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 11:36 AM To: CF-Talk Subject: Re: image manipulation in coldfusion? ..and for those that care (Tony got his offlist)here's the FREE code I was on about yesterday.enjoy!! !---(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 !---(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 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:220132 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
Re: image manipulation in coldfusion?
Hey John, I haven't noticed any quality issuesalso haven't used it with super high res images 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:220133 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: image manipulation in coldfusion?
How is the quality on the resizes for that? I've used some java stuff like that before and had issues with the quality. You can use Java for image manipulation and achieve good quality results. You just have to dig the APIs a little more. That's what I tried to do when I wrote version 2.0 of my CFC and I achieved a huge increase in quality. You can get it from here and give it a try (it's free): http://www.olimpo.ch/tmt/cfc/tmt_img/ Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.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:220134 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: image manipulation in coldfusion?
Bryan, How is the quality on the resizes for that? I've used some java stuff like that before and had issues with the quality. Things seemed to come out a little distorted. From what I can see in the component, it doesn't seem like there's any kind of argument for the quality. Let me know if you've had similar experiences. For some of the people I've tried doing this for, they're artists and bands and people who are a little more particular about the resize quality so I really need it to be top notch. Let me know. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 11:36 AM To: CF-Talk Subject: Re: image manipulation in coldfusion? ..and for those that care (Tony got his offlist)here's the FREE code I was on about yesterday.enjoy!! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220135 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: image manipulation in coldfusion?
Sorry Bryan ;) I've checked out your code. It's great. We just use ImageCR for the broad filetype support. -e -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 8:01 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? We use imageCR3 and love it. I only wish it was java based so we could use it on linux. -e Once againmy code is Java based and FREE (not as sophisticated as imageCR3but original poster doesn't need the fancy stuff) OK...I'm done talking to myself ;-) 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:220136 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: image manipulation in coldfusion?
I've checked out your code. It's great. We just use ImageCR for the broad filetype support. yep...mine is great for good old JPG/GIF manipbut when ya hit the TIFFs it gets fuzzyBTW I do have some code to convert multi-page TIFFs to PDF (one page per page in TIFF)compliments of the wonderous package iText ;-) 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 ~| 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:220137 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
image manipulation in coldfusion?
So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220064 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: image manipulation in coldfusion?
not free, but i'd highly recommend the alagad image component. http://www.alagad.com/ On 10/4/05, Andy Matthews [EMAIL PROTECTED] wrote: So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220065 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: image manipulation in coldfusion?
search the archives for my name or e-mail and ThumbIt or mabye image manipulation. I've posted my CFC methods that use Java to resize images and get image pixel height/width about 5-10 times nowdoes not work with TIFFs I don't have the code handy right now or I'd post it yet again ;-) 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 ~| 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:220066 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: image manipulation in coldfusion?
Andy Matthews wrote: So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. I use built in java stuff to do this with jpegs .. take a look at the image.cfc file included in the CFFM distributino (www.webworksllc.com/cffm) rick ~| 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:220067 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: image manipulation in coldfusion?
I'd check out the Alagad Image Component at www.alagad.com - it's native CF. While it's not free, it's so cheap that you'll make back the dough the first time you use it in terms of time saved. -Joe On 10/4/05, Andy Matthews [EMAIL PROTECTED] wrote: So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220068 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: image manipulation in coldfusion?
I'll ditto Alagad. It's only like 75 bucks and well worth the price. Yes, there are free alternatives, but this one is so easy and simple to use, I'd still recommend it. On 10/4/05, Joe Rinehart [EMAIL PROTECTED] wrote: I'd check out the Alagad Image Component at www.alagad.com - it's native CF. While it's not free, it's so cheap that you'll make back the dough the first time you use it in terms of time saved. -Joe On 10/4/05, Andy Matthews [EMAIL PROTECTED] wrote: So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220073 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: image manipulation in coldfusion?
ImageCR3: http://efflare.com/products/cfx_imagecr/ Personal licenses for $75: http://efflare.com/purchase/?personal We never gave it away for free, but we have plenty of happy customers. It is optimized native code, like important parts of Java. High quality output and extensive image format support. If CF user groups want a license, send me a mail. -- CrystalM So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220075 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: image manipulation in coldfusion?
now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). On 10/4/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ImageCR3: http://efflare.com/products/cfx_imagecr/ Personal licenses for $75: http://efflare.com/purchase/?personal We never gave it away for free, but we have plenty of happy customers. It is optimized native code, like important parts of Java. High quality output and extensive image format support. If CF user groups want a license, send me a mail. -- CrystalM So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| 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:220077 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: image manipulation in coldfusion?
now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). Charlie...buddyfind my code in the archives...straight CFC...and FREE...I can only try and help so much!! ;-) 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:220078 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: image manipulation in coldfusion?
Wow... yeah... Alagad is nice, but the stuff from eFFlare is awesome. If you are in a shared envirnment I would go with alagad. On 10/4/05, Bryan Stevenson [EMAIL PROTECTED] wrote: now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). Charlie...buddyfind my code in the archives...straight CFC...and FREE...I can only try and help so much!! ;-) 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 http://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:220088 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: image manipulation in coldfusion?
We use imageCR3 and love it. I only wish it was java based so we could use it on linux. -e -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 6:13 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? now i'm torn. I've used ImageCR3 in the past and yes, it's a great product with absolutely fantastic (FANTASTIC) support. But what I like about Alagad is the fact that it's a straight CFC. No custom tags to install (which may not be a big issue unless you're in a shared environment and the host likes to charge for custom tag installations). On 10/4/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ImageCR3: http://efflare.com/products/cfx_imagecr/ Personal licenses for $75: http://efflare.com/purchase/?personal We never gave it away for free, but we have plenty of happy customers. It is optimized native code, like important parts of Java. High quality output and extensive image format support. If CF user groups want a license, send me a mail. -- CrystalM So I'm wondering what some of you use to manipulate images in CF. I've been wanting something like this for a while but it's always gotten put off. At the very least I need to be able to resize images and get their height and width. More than that would be nice, but not necessary. Can anyone offer any suggestions? !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220089 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: image manipulation in coldfusion?
We use imageCR3 and love it. I only wish it was java based so we could use it on linux. -e Once againmy code is Java based and FREE (not as sophisticated as imageCR3but original poster doesn't need the fancy stuff) OK...I'm done talking to myself ;-) 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:220093 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: image manipulation in coldfusion?
I use Massimo's tmt_img 2.0 (http://www.olimpo.ch/tmt/cfc/tmt_img/) and it's great if what you need to do is crp/resize images. It's all CFC so no custom tags, nothing to configure. Oh, and it's free. I extended it to add a max size that resizes so that no dimension is greater than the passed in value, which makes it even more invaluable for me. Pete ~| 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:220097 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