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
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
> 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
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
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. -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? -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. ~| 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 - 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
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? -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. ~| 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
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