/* Image Gallery Magic (iGM) by PVII Copyright 2006,2007 Project Seven Development. All rights reserved. --------------------------------------------------------------- www.projectseven.com --------------------------------------------------------------- PVII Image Gallery Magic Fireworks Optimization and Export Directives JSF Revision: C --------------------------------------------------------------- */ var thePath,theFPath,theTPath,theDoc,i=0,mS='',runIt=true,tPrompt=false; var theSourceImage,theFullImage,theThumbImage; var theDestPath=String.fromCharCode(102,105,108,101,58,47,47,47,77,97,99,105,110,116,111,115,104,32,72,68,47,85,115,101,114,115,47,98,116,103,114,101,101,110,47,68,111,99,117,109,101,110,116,115,47,119,101,98,115,47,109,105,115,115,105,110,103,95,108,121,110,120,47,114,101,118,105,101,119,115,47,103,101,114,109,97,110,47,112,55,104,103,95,105,109,103,95,49); var theSourceFolder=String.fromCharCode(102,105,108,101,58,47,47,47,77,97,99,105,110,116,111,115,104,32,72,68,47,85,115,101,114,115,47,98,116,103,114,101,101,110,47,68,111,99,117,109,101,110,116,115,47,116,101,109,112,104,121,112,101,114,102,105,108,101,115,47,109,105,115,115,105,110,103,45,108,121,110,120,47,114,101,118,105,101,119,115); var fullOpt=({colorMode:"24 bit", exportFormat:"JPEG", jpegQuality:80, jpegSmoothness:0, jpegSubsampling:0, name:"JPEG - Better Quality", numEntriesRequested:256, applyScale:true, percentScale:100, useScale:false, xSize:-640, ySize:-480 }); var thumbOpt=({applyScale:true, colorMode:"24 bit", exportFormat:"JPEG", jpegQuality:60, jpegSmoothness:2, jpegSubsampling:1, name:"JPEG - Smaller File", numEntriesRequested:0, percentScale:100, useScale:false, xSize:-100, ySize:-100}); fw.progressCountTotal=5; fw.progressCountCurrent=0; fw.dismissBatchDialogWhenDone=true; function checkContinueProcess(im){ runIt=fw.yesNoDialog('FW could not open image source file:\n'+im+'\n\nDo you wish to continue processing the remaining images?'); } function checkFileWrite(tP,tY){ var retVal=true; if(tPrompt){ if(Files.exists(tP)){ if(!fw.yesNoDialog('The '+tY+' image file:\n\n'+tP+'\n\nalready exists. Do you wish to replace the file?')){ retVal=false; } } } return retVal; } function P7_processImage(){ fw.batchStatusString=theSourceImage; thePath=theSourceFolder+'/'+theSourceImage; theDoc=fw.openDocument(thePath); if(theDoc&&runIt){ if(theFullImage!='none'){ theFPath=theDestPath+'/fullsize/'+theFullImage; if(checkFileWrite(theFPath,'Full Size')){ fw.exportDocumentAs(theDoc,theFPath,fullOpt); } } theTPath=theDestPath+'/thumbs/'+theThumbImage; if(checkFileWrite(theTPath,'Thumnail')){ fw.exportDocumentAs(theDoc,theTPath,thumbOpt); } fw.closeDocument(theDoc,false); }else{ checkContinueProcess(thePath); } } fw.progressCountCurrent=1; theSourceImage=String.fromCharCode(51,53,48,53,52,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,52,46,106,112,103); theFullImage=String.fromCharCode(51,53,48,53,52,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,52,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(51,53,48,53,52,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,52,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(51,53,48,53,52,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,53,46,106,112,103); theFullImage=String.fromCharCode(51,53,48,53,52,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,53,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(51,53,48,53,52,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(51,53,48,53,54,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,54,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(51,53,48,53,54,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,54,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(51,53,48,53,54,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,55,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(51,53,48,53,54,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,48,55,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(51,53,48,53,54,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,49,54,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(51,53,48,53,54,87,87,50,71,101,114,109,97,110,79,102,102,105,99,101,114,83,101,116,45,48,49,54,95,116,109,98,46,106,112,103); P7_processImage();