Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Error 8800 save as jpg

$
0
0

Hi everybody!

I'm getting Error 8800 when saving certain PSDs out as a JPG. The error says Error 8800. General Photoshop error occured <No additional information available>

Line:18

-> {activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);

 

But, like I say, it works fine for some PSD files and not for others. I'm just not sure why though - it's not like i've included path infomation or an extra channel or something.

 

Here's the code

<code>

// LAZY SAVE AS JPG

 

var srcDoc = app.activeDocument;

docName = app.activeDocument.name.substring(0,app.activeDocument.name.length -4)

filePath = srcDoc.path + '/' + docName + '.jpg';

 

var jpgFile = new File(filePath);

jpgSaveOptions = new JPEGSaveOptions();

jpgSaveOptions.formatOptions = FormatOptions.OPTIMIZEDBASELINE;

jpgSaveOptions.embedColorProfile = true;

jpgSaveOptions.matte = MatteType.NONE;

jpgSaveOptions.quality = 12;

 

try

{activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);

}

catch(e)

{

alert(e)

}

</code>


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>