core icon indicating copy to clipboard operation
core copied to clipboard

method to get EXIF and PIL image data

Open kba opened this issue 4 years ago • 0 comments
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_pil and adding another kwarg exif=False which controls whether the return value should become a tuple with the OcrdExif instance as secondary value?

kba avatar Apr 22 '21 10:04 kba