def prepareImages(self, fileName, logType):
import subprocess<EOL>if self.imageType == "<STR_LIT>":<EOL><INDENT>self.imagePixmap.save(fileName + "<STR_LIT>", "<STR_LIT>", -<NUM_LIT:1>)<EOL>if logType == "<STR_LIT>":<EOL><INDENT>makePostScript = "<STR_LIT>" + fileName + "<STR_LIT>" + fileName + "<STR_LIT>"<EOL>process = subprocess.Popen(makePostScript, shell=True)<EOL>process.wait()<EOL>thumbnailPixmap = self.imagePixmap.scaled(<NUM_LIT>, <NUM_LIT>, Qt.KeepAspectRatio)<EOL>thumbnailPixmap.save(fileName + "<STR_LIT>", "<STR_LIT>", -<NUM_LIT:1>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>renameImage = "<STR_LIT>" + self.image + "<STR_LIT:U+0020>" + fileName + "<STR_LIT>"<EOL>process = subprocess.Popen(renameImage, shell=True)<EOL>process.wait()<EOL>if logType == "<STR_LIT>":<EOL><INDENT>thumbnailPixmap = self.imagePixmap.scaled(<NUM_LIT>, <NUM_LIT>, Qt.KeepAspectRatio)<EOL>thumbnailPixmap.save(fileName + "<STR_LIT>", "<STR_LIT>", -<NUM_LIT:1>)<EOL><DEDENT><DEDENT>
Convert supplied QPixmap object to image file.