Article View: adobe.photoshop.scripting
Article #2007Problem Calling Photoshop Through Web Application
From: kyrian_willis
Date: Thu, 24 Jun 2004 19:58
Date: Thu, 24 Jun 2004 19:58
16 lines
1711 bytes
1711 bytes
Hi, I'm trying to build a web app where a user will submit an image through a web page and then on the server side the image will be converted by photoshop into a JPG. I've got the automation working how I want it, but I can only get it to work as a stand alone application. When I call my object that runs Photoshop from a .Net web application I can start photoshop but I can't open a file. I get an "Unknown scripting error occurred" error. I'm sure this is some type of permissions error but I've played arround with everything I can think of with no luck. Does anyone have any ideas? (Win 2000/IIS 5.0) Below is the code PSApp = new Photoshop.ApplicationClass(); //it bombs on the line below docRef = PSApp.Open(sInputFile,docRef); docRef.ResizeImage(150,150,150,null); docRef.ChangeMode(Photoshop.PsChangeMode.psConvertToRGB,null); //save image is a seperate function that saves the image saveImage(); docRef.Close(Photoshop.PsSaveOptions.psDoNotSaveChanges); PSApp.Quit();
Technical Details
Message-ID:
<3bb4c35a.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5839,3a3d4c6c12e7dbe,start X-Google-Attributes: gidf5839,public From: kyrian_willis@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.photoshop.scripting Subject: Problem Calling Photoshop Through Web Application Message-ID: <3bb4c35a.-1@webx.la2eafNXanI> Date: Thu, 24 Jun 2004 12:58:33 -0700 Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit