/* 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,48); 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,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,47,98,114,101,116,116); 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:60, jpegSmoothness:2, jpegSubsampling:1, name:"JPEG - Smaller File", 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(66,84,74,95,51,54,52,54,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,52,54,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(66,84,74,95,51,54,52,55,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,52,55,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(66,84,74,95,51,54,52,56,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,52,56,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(66,84,74,95,51,54,52,57,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,52,57,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,48,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,48,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=6; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,49,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=7; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=8; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,51,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,51,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=9; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,52,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,52,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=10; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,53,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=11; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,54,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,54,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=12; theSourceImage=String.fromCharCode(66,84,74,95,51,54,53,55,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,84,74,95,51,54,53,55,95,116,109,98,46,106,112,103); P7_processImage();