/* 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,68,124,47,87,101,98,115,105,116,101,32,68,101,115,105,103,110,47,83,110,117,103,103,108,101,115,32,97,110,100,32,72,117,103,115,47,83,105,116,101,47,103,97,108,108,101,114,121); var theSourceFolder=String.fromCharCode(102,105,108,101,58,47,47,47,68,124,47,87,101,98,115,105,116,101,32,68,101,115,105,103,110,47,83,110,117,103,103,108,101,115,32,97,110,100,32,72,117,103,115,47,71,97,108,108,101,114,121,32,82,97,119,32,80,104,111,116,111,115,47,77,97,121,32,50,48,48,57); 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:80, jpegSmoothness:0, jpegSubsampling:0, name:"JPEG - Better Quality", numEntriesRequested:0, percentScale:100, useScale:false, xSize:-100, ySize:-100}); fw.progressCountTotal=12; 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(35,51,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(35,51,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(50,54,50,53,57,57,53,57,50,52,53,51,46,106,112,103); theFullImage=String.fromCharCode(50,54,50,53,57,57,53,57,50,52,53,51,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(50,54,50,53,57,57,53,57,50,52,53,51,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(66,101,110,116,108,101,121,32,97,110,100,32,79,108,105,118,101,114,46,74,80,71); theFullImage=String.fromCharCode(66,101,110,116,108,101,121,95,97,110,100,95,79,108,105,118,101,114,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(66,101,110,116,108,101,121,95,97,110,100,95,79,108,105,118,101,114,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(98,105,97,110,99,97,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(98,105,97,110,99,97,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(68,111,99,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(68,111,99,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=6; theSourceImage=String.fromCharCode(77,97,117,105,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(77,97,117,105,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=7; theSourceImage=String.fromCharCode(79,115,99,97,114,49,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(79,115,99,97,114,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=8; theSourceImage=String.fromCharCode(80,104,111,116,111,95,115,109,105,108,101,121,46,106,112,103); theFullImage=String.fromCharCode(80,104,111,116,111,95,115,109,105,108,101,121,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(80,104,111,116,111,95,115,109,105,108,101,121,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=9; theSourceImage=String.fromCharCode(115,99,97,110,48,48,48,49,46,116,105,102); theFullImage=String.fromCharCode(115,99,97,110,48,48,48,49,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(115,99,97,110,48,48,48,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=10; theSourceImage=String.fromCharCode(115,99,97,110,48,48,48,50,46,116,105,102); theFullImage=String.fromCharCode(115,99,97,110,48,48,48,50,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(115,99,97,110,48,48,48,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=11; theSourceImage=String.fromCharCode(115,99,97,110,48,48,48,54,46,116,105,102); theFullImage=String.fromCharCode(115,99,97,110,48,48,48,54,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(115,99,97,110,48,48,48,54,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=12; theSourceImage=String.fromCharCode(83,99,111,111,98,121,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(83,99,111,111,98,121,95,116,109,98,46,106,112,103); P7_processImage();