core icon indicating copy to clipboard operation
core copied to clipboard

workspace.save_image_file: set dpi on image.save, #343

Open kba opened this issue 5 years ago • 1 comments

kba avatar Sep 21 '20 16:09 kba

Another idea I had: couldn't we at least try to force PIL.Image objects we ourselves produce (Workspace.image_from_page and image_from_segment) to retain or piggy-back the DPI info? Or even store that info in the workspace instance (e.g. by attaching the OcrdExif to the OcrdFile of the PAGE-XML, which itself could be cached in the OcrdMets; this would require rewriting Processor.input_files, but allow reusing these iterations)?

bertsky avatar Feb 17 '23 20:02 bertsky