freedomofpress / dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs
https://dangerzone.rocks/
GNU Affero General Public License v3.0
3.59k stars 170 forks source link

Add new file formats supported by PyMuPDF (epub, svg, bmp, pnm, bpm, ppm) #697

Closed deeplow closed 8 months ago

deeplow commented 8 months ago

(two commits on top of #627) just to get the Qubes support working.

Partially fixes for #660. Missing some files due to limitations 1:

New test files were generated locally:

deeplow commented 8 months ago

I had originally also added support for txt, mobi and psd but I later found those had issues in our various system configurations.

While psd and txt had to do with older PyMuPDF versions on Fedora, mobi was working on Qubes but failing on the container. Basically the mimetype library on Qubes correctly identifies the file format but on container we have another one and it says application/octet-stream :/