https://bugs.documentfoundation.org/show_bug.cgi?id=92375
--- Comment #41 from Christian Assig <[email protected]> --- Created attachment 186871 --> https://bugs.documentfoundation.org/attachment.cgi?id=186871&action=edit Python script to fix odf files with missing resolution data Thank you Mike Kaganski for your minimal reproducer. It helped me write a python script that analyzes and "fixes" odp files containing png images without resolution data (see attached). The script was able to successfully fix the problems I previously had with cropped images in odf files. The script treats the odp file as a zip file and checks all files contained in the zip file. If it finds png files without resolution data, it adds resolution data and writes the resulting files to a new zip/odp file. Currently, the script assumes a resolution of 96 dpi. You would need to change that (in line 31 of the script) if your images have a different resolution. -- You are receiving this mail because: You are the assignee for the bug.
