For animated gifs: gifsicle sets Photoshops SaveForWeb parameter "lossy" to 60 that cannot be changed.
To batch save animated gifs I am using the great script written by SuperMerlin . Here it is:
#target photoshop;
try{
var Path= activeDocument.path;
}catch(e){var Path = "~/desktop";}
var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
var layerName = app.activeDocument.activeLayer.name.replace(/[:\/\\*\?\"\<\>\|]/g, "_");
var saveFile= new File(Path + "/" + Name + "-" + layerName + ".gif");
var rex = new RegExp(Name + "-" + layerName + ".gif");
var files = decodeURI(saveFile.fsName).replace(rex,"*.gif");
var cmd = 'C:/gifsicle.exe --batch --loop=forever --careful ';
cmd += '\"' + files+ '\"';
SaveForWeb(saveFile);
app.system(cmd);
function SaveForWeb(saveFile) {
var sfwOptions = new ExportOptionsSaveForWeb();
sfwOptions.format = SaveDocumentType.COMPUSERVEGIF;
sfwOptions.includeProfile = false;
sfwOptions.interlaced = 0;
sfwOptions.optimized = true;
sfwOptions.transparency = 1;
sfwOptions.ColorReductionType = ColorReductionType.SELECTIVE;
sfwOptions.dither = Dither.NONE;
sfwOptions.ditherAmount = 0;
sfwOptions.lossy = 8;
sfwOptions.webSnap = 0;
sfwOptions.colors = 256;
activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
};
And everything was great until I reinstall my computer. It looks like all photoshop and system parameters are as they were before but all my animated Gifs start to apear in a very poor quality after gifsicle. Exactly as poor as if you set in Export Option - SaveForWeb - parameter "lossy" to 60 for your animted gif.
If you open SaveForWeb - lossy is always set to 60 by default after using gifsicle. Otherwise it sets by default to whatever value was previously used.
I cannot fight that. Nothing helps so far. Would be very grateful for any help!
