def makePics(self):
rescanNeeded=False<EOL>for fname in smartSort(self.fnames):<EOL><INDENT>if fname in self.fnames2:<EOL><INDENT>continue<EOL><DEDENT>ext=os.path.splitext(fname)[<NUM_LIT:1>].lower()<EOL>if ext in ["<STR_LIT>","<STR_LIT>"]:<EOL><INDENT>if not fname in self.abfFolder2:<EOL><INDENT>self.log.debug("<STR_LIT>",fname)<EOL>shutil.copy(os.path.join(self.abfFolder,fname),os.path.join(self.abfFolder2,fname))<EOL>rescanNeeded=True<EOL><DEDENT><DEDENT>if ext in ["<STR_LIT>","<STR_LIT>"]:<EOL><INDENT>if not fname+"<STR_LIT>" in self.fnames2:<EOL><INDENT>self.log.debug("<STR_LIT>",fname)<EOL>swhlab.swh_image.TIF_to_jpg(os.path.join(self.abfFolder,fname),saveAs=os.path.join(self.abfFolder2,fname+"<STR_LIT>"))<EOL>rescanNeeded=True<EOL><DEDENT><DEDENT><DEDENT>if rescanNeeded:<EOL><INDENT>self.log.debug("<STR_LIT>")<EOL>self.log.debug("<STR_LIT>")<EOL>self.folderScan()<EOL><DEDENT>
convert every .image we find to a ./swhlab/ image