/* 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,104,121,112,101,114,115,99,97,108,101,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,53,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,104,121,112,101,114,115,99,97,108,101,47,68,111,99,117,109,101,110,116,115,47,109,109,105,47,105,115,115,117,101,32,56,54,47,112,114,101,118,105,101,119,32,45,32,98,114,111,110,99,111,32,102,108,97,107,32,52,49,32,98,121,32,98,105,108,108,32,119,105,115,101,109,97,110,47,115,109,97,108,108,32,105,109,97,103,101,115); var fullOpt=({colorMode:"24 bit", exportFormat:"JPEG", jpegQuality:80, jpegSmoothness:0, jpegSubsampling:0, name:"JPEG - Better Quality", numEntriesRequested:256, }); 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=19; 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(48,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(48,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,48,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,48,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,49,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,51,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,51,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=6; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,52,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,52,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=7; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,53,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=8; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,55,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,55,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=9; theSourceImage=String.fromCharCode(66,84,74,95,51,53,56,57,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,56,57,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=10; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,48,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,48,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=11; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,49,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=12; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=13; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,51,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,51,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=14; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,52,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,52,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=15; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,53,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=16; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,54,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,54,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=17; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,55,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,55,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=18; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,56,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,56,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=19; theSourceImage=String.fromCharCode(66,84,74,95,51,53,57,57,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,53,57,57,95,116,109,98,46,106,112,103); P7_processImage();