name "Make Image Html" mode 1 menu "Make Html" label "Make Html with Image" declare n:nFname declare b:bStatus declare s:sMsg,sSwitch,sPath,sErrorDesc,sSdate,sStime,sHH,sMN,sSS declare i:iErrorCode,iDigit0,iDigit1,iDigit2 declare f:fDispf declare u:uFileId,uCounter,uFilecount,uFindex,uLength declare u:uMod,uSelect,uCol,uRow,uImcn,uCmpn,uDate,uTime,uZpos declare u:uFdst,uFmod,uFmtd,uFnum,uImht,uImwd,uOrtn,uShut,uSmod declare u:uYY,uMM,uDD,uHH,uMN,uSS declare u:uImht_tn,uImwd_tn declare s:sProductName iErrorCode = 0 SetOption(1,"HTML with Data",1) SetOption(2,"HTML Photo only",0) GetOption(uSelect) sSwitch="off" if uSelect==1 sSwitch="on" end SetOption(1,"2 : Cols Display",0) SetOption(2,"3 : Cols Display",1) GetOption(uSelect) uCol=2 if uSelect==1 uCol=1 end Alert("Make Html File. Ready?") GetFileCount(uFilecount) if uFilecount<=0 goto Exit end Display(uFilecount," Files") Wait(200) DisplayClear() # Check for valid camera GetProductInfo ("ptid", sProductName) #----Kodak DC290 if sProductName == "KODAK DC290 Zoom Digital Camera" EraseFile("/DC290_01/","PIC.HTM") FileOpen(2,"/DC290_01/PIC.HTM",1,uFileId) goto Checkend end #----Kodak DC265 if sProductName == "KODAK DC265 ZOOM DIGITAL CAMERA" EraseFile("/DC265_01/","PIC.HTM") FileOpen(2,"/DC265_01/PIC.HTM",1,uFileId) goto Checkend end #----Kodak DC260 if sProductName == "KODAK DIGITAL SCIENCE DC260" EraseFile("/DC260_01/","PIC.HTM") FileOpen(2,"/DC260_01/PIC.HTM",1,uFileId) goto Checkend end #----Kodak DC220 if sProductName == "KODAK DIGITAL SCIENCE DC220" EraseFile("/DC220_01/","PIC.HTM") FileOpen(2,"/DC220_01/PIC.HTM",1,uFileId) goto Checkend end #----Minolta Dimage EX 1500 if sProductName == "Dimage EX" EraseFile("/EX15_01/","PIC.HTM") FileOpen(2,"/EX15_01/PIC.HTM",1,uFileId) goto Checkend end #----HP PhotoSmart C500 if sProductName == "HP PhotoSmart C500" EraseFile("/HP500_01/","PIC.HTM") FileOpen(2,"/HP500_01/PIC.HTM",1,uFileId) goto Checkend end #----HP PhotoSmart C618 if sProductName == "HP PhotoSmart C618" EraseFile("/CAMERA01/","PIC.HTM") FileOpen(2,"/CAMERA01/PIC.HTM",1,uFileId) goto Checkend end #----Pentax EI-200 if sProductName == "PENTAX EI-200" EraseFile("/CAMERA01/","PIC.HTM") FileOpen(2,"/CAMERA01/PIC.HTM",1,uFileId) goto Checkend end #----Pentax EI-2000 if sProductName == "PENTAX EI-2000" EraseFile("/CAMERA01/","PIC.HTM") FileOpen(2,"/CAMERA01/PIC.HTM",1,uFileId) goto Checkend end Alert("Unknown camera") goto Exit Checkend: GetError(sSdate,sStime,iErrorCode,sErrorDesc) Display("File ID ",uFileId) Wait(100) DisplayClear() if iErrorCode!=0 goto ErrorProc end uFindex=0 uCounter=0 if uCounter==0 WriteLine(uFileId,"") WriteLine(uFileId,"
") WriteLine(uFileId,"") end if uOrtn!=1 WriteLine(uFileId," | ") end WriteLine(uFileId,"File Name : ",nFname," ") if sSwitch=="off" goto DispfEnd end GetFileTag(sPath,nFname,"cmpn",uCmpn) GetFileTag(sPath,nFname,"date",uDate) GetFileTag(sPath,nFname,"time",uTime) GetFileTag(sPath,nFname,"fdst",uFdst) GetFileTag(sPath,nFname,"fmod",uFmod) GetFileTag(sPath,nFname,"fmtd",uFmtd) GetFileTag(sPath,nFname,"fnum",uFnum) GetFileTag(sPath,nFname,"shut",uShut) GetFileTag(sPath,nFname,"smod",uSmod) GetFileTag(sPath,nFname,"zpos",uZpos) goto GetDate WriteDate: WriteLine(uFileId,"Date (yy/mm/dd) : ",uYY,"/",uMM,"/",uDD," ") goto GetTime WriteTime: WriteLine(uFileId,"Time (hh/mm/ss) : ",sHH,uHH,":",sMN,uMN,":",sSS,uSS," ") sMsg="Best" if uCmpn==2 sMsg="Good" end if uCmpn==3 sMsg="Better" end WriteLine(uFileId,"Compress Level : ",sMsg," ") WriteLine(uFileId,"Image Size : ",uImht,"x",uImwd," ") sMsg="Manual" if uFmod==1 sMsg="Auto" end WriteLine(uFileId,"Forcus Mode : ",sMsg," ") sMsg="Single Spot" if uFmtd==1 sMsg="Multi Spot" end WriteLine(uFileId,"Forcus Method : ",sMsg," ") sMsg="Fill" if uSmod==1 sMsg="Off" end if uSmod==2 sMsg="Auto" end WriteLine(uFileId,"Strobo Mode : ",sMsg," ") uFnum=uFnum/100 if uFnum==5 WriteLine(uFileId,"Apature : F5.6"," ") end if uFnum!=5 WriteLine(uFileId,"Apature : F",uFnum," ") end if uShut<1000000 uShut=1000000/uShut WriteLine(uFileId,"Shutter Speed : 1/",uShut,"sec"," ") end if uShut>=1000000 uShut=uShut/1000000 WriteLine(uFileId,"Shutter Speed : ",uShut,"sec"," ") end uZpos=uZpos*384/1000 WriteLine(uFileId,"Zoom Position : ",uZpos,"mm"," ") fDispf=uFdst fDispf=fDispf/100 goto Dispf DispfEnd: WriteLine(uFileId," | ")
if uMod==uCol
WriteLine(uFileId,"") uMod=uMod+1 goto EndScript end EndHtml: if uFileId!=0 WriteLine(uFileId," |