/* 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,109,111,100,101,114,110,47,112,55,104,103,95,105,109,103,95,51,53); 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,110,101,119,32,103,97,108,108,101,114,121); 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=32; 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,82,68,77,50,69,97,114,108,121,83,112,114,117,101,65,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,65,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,66,102,114,111,110,116,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,66,102,114,111,110,116,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,66,114,101,97,114,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,66,114,101,97,114,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,67,102,114,111,110,116,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,67,102,114,111,110,116,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=6; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,67,114,101,97,114,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,67,114,101,97,114,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=7; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,69,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,69,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=8; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,70,102,114,111,110,116,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,70,102,114,111,110,116,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=9; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,70,114,101,97,114,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,70,114,101,97,114,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=10; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,120,72,117,108,108,76,111,119,101,114,49,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,120,72,117,108,108,76,111,119,101,114,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=11; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,120,72,117,108,108,76,111,119,101,114,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,120,72,117,108,108,76,111,119,101,114,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=12; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,49,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,49,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=13; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=14; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,51,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,51,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=15; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,52,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,52,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=16; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,53,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=17; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,54,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,54,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=18; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,55,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,55,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=19; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,56,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,56,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=20; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,57,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,48,57,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=21; theSourceImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,49,48,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,69,97,114,108,121,83,112,114,117,101,90,100,101,116,97,105,108,49,48,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=22; theSourceImage=String.fromCharCode(66,82,68,77,50,80,97,114,116,115,67,97,116,97,108,111,103,82,105,103,49,49,50,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,80,97,114,116,115,67,97,116,97,108,111,103,82,105,103,49,49,50,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=23; theSourceImage=String.fromCharCode(66,82,68,77,50,80,97,114,116,115,67,97,116,97,108,111,103,82,105,103,49,49,53,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,80,97,114,116,115,67,97,116,97,108,111,103,82,105,103,49,49,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=24; theSourceImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,49,70,105,103,53,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,49,70,105,103,53,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=25; theSourceImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,49,70,105,103,53,97,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,49,70,105,103,53,97,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=26; theSourceImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,50,70,105,103,50,49,56,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,50,70,105,103,50,49,56,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=27; theSourceImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,50,70,105,103,50,50,48,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(66,82,68,77,50,84,77,66,111,111,107,50,70,105,103,50,50,48,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=28; theSourceImage=String.fromCharCode(67,111,109,109,97,110,100,101,114,115,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(67,111,109,109,97,110,100,101,114,115,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=29; theSourceImage=String.fromCharCode(79,118,101,114,104,101,97,100,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(79,118,101,114,104,101,97,100,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=30; theSourceImage=String.fromCharCode(83,116,111,119,97,103,101,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(83,116,111,119,97,103,101,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=31; theSourceImage=String.fromCharCode(85,112,112,101,114,32,104,117,108,108,44,32,114,101,97,114,32,114,105,103,104,116,32,116,104,114,101,101,32,113,117,97,114,116,101,114,32,118,105,101,119,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(85,112,112,101,114,95,104,117,108,108,44,95,114,101,97,114,95,114,105,103,104,116,95,116,104,114,101,101,95,113,117,97,114,116,101,114,95,118,105,101,119,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=32; theSourceImage=String.fromCharCode(120,46,106,112,103); theFullImage='none'; theThumbImage=String.fromCharCode(120,95,116,109,98,46,106,112,103); P7_processImage();