Exemplo n.º 1
0
 def copymetadatatoxmp(self):
     et_param = "copymetadatatoxmp"
     message = "This function will copy all possible information from exif and other tags into XMP format.\n"
     message += "This is an internal \"same image to same image\" copy, for all the selected images.\n\n"
     message += "Do you want to continue?"
     reply = QMessageBox.question(self, "Copy all metadata to xmp format?", message, QMessageBox.Yes | QMessageBox.No)
     if reply == QMessageBox.Yes:
         petgfunctions.write_image_info(self, et_param, qApp, False)
Exemplo n.º 2
0
 def repair_jpg_metadata(self):
     et_param = "-all= -tagsfromfile @ -all:all -unsafe -F "
     message = "If exiftool can't write to your photo it might be due to corrupted metadata. Exiftool can fix this but only "
     message += "for the tags that are still readible. In a jpeg the image data is separated from the meta data. If your "
     message += "photo can't be displayed in an image viewer, your image data itself is corrupt. Exiftool can't repair that.\n\n"
     message += "Do you want to continue and repair as much metadata as possible?"
     reply = QMessageBox.question(self, "Repair corrupted metadata in JPG(s)", message, QMessageBox.Yes | QMessageBox.No)
     if reply == QMessageBox.Yes:
         # Add true to write function: Always make a backup in this case
         petgfunctions.write_image_info(self, et_param, qApp, True)