core
core copied to clipboard
method to get EXIF and PIL image data
trafficstars
From https://github.com/qurator-spk/eynollah/pull/33#discussion_r618217772
Lest I forget: It would be nice to get the image along with the exif information:
exif, img_pil = self.workspace.resolve_image_exif(page.imageFilename)since we're opening the image anyway.
Yes, but that would be a backwards-imcompatible change of the API. How about de-deprecating
resolve_image_piland adding another kwargexif=Falsewhich controls whether the return value should become a tuple with theOcrdExifinstance as secondary value?