EasyCFM.COM ColdFusion Forums / Coding Help! / This graphics environment can be used only in the

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: This graphics environment can be used only in the

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

newkirk
11-23-2004 @ 3:46 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 237
Joined: Oct 2004

If you are using Alagad Image compenent and are resizing images and see this error what do you think the problem is?
"This graphics environment can be used only in the software emulation mode."


From what I have read I believe this is a problem my web host needs to correct, server side prob right. The Alagad documentation says something about a "Headless system",no mouse or keyboard hooked to the server.  Just to appease me please check my code to ensure its accuracy so I can email my host for the 1000th time and tell him again "if you are offering this to your customers, please ensure it is properly installed!"
Here is the code(error free I hope)...

<CFSET newPath=#LCase(CatDesc1.Description)#>

<!---Set variables for photo alias and path to store photo--->
<CFSET photoDir = #ExpandPath(newPath)#>

<!---Upload photo--->
     <cffile
          action="upload"
          destination="#photoDir#"
          filefield="FORM.PicFile"
          nameconflict="makeunique"
     >
     
     <CFSET img1= #UserID# & #DateFormat(Now(),"DDMMYY")# & #TimeFormat(Now(),"HHmmss")#>
     
     <CFSET img=#ListAppend(img1,FILE.ServerFileExt,".")#>

     <CFFILE ACTION="RENAME"
          SOURCE="#photoDir#/#CFFILE.ServerFile#"
          destination="#photoDir#/#img#"
     >
<!--- open the image to resize --->

<cfset myImage.readImage("#photoDir#/#img#") />



<!--- resize the image to a specific width and height--->

<cfset myImage.scalePixels(100, 100) />



<!--- output the image in JPG format --->

<cfset myImage.writeImage("#photoDir#/#img1#_Thumb.jpg", "jpg") />


"Emotions are the irrational impulses that enslave mankind"
Spinoza 17th century philosopher

This message was edited by newkirk on 11-23-04 @ 3:57 PM

newkirk
11-23-2004 @ 4:24 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 237
Joined: Oct 2004

I keep trying to tweek the code and still the same error. Its gotta be the server,right?  What do you think????

"Emotions are the irrational impulses that enslave mankind"
Spinoza 17th century philosopher


Website Designed and Developed by Pablo Varando.