deeplow
cd99122385
Adds file formats: epub svg bmp pnm bpm ppm
...
Partially fix for #660 . Missing some files due to limitations [1]:
- PSD - only available from PyMuPDF>=1.23.0 (qubes-fedora is lower)
- TXT - only available from PyMuPDF>=1.23.7 (qubes-fedora is lower)
- JXR - PyMuPDF was refusing to due to missing codec [1]
- JPX - Generated test file was rejected by PyMuPDF [2]
- FB2 - Most often cannot be detected by mime type alone [3]
- CBZ - (idem)
- XPS - (idem)
- MOBI - (idem)
- PAM - General version of other file format already included, so I
decided not to include this extension [0]
New test files were generated locally:
- epub - generated with calibre's convert-ebook from another
sample file
- svg - generated with inkscape from a mix of a default template
(hexagons) and a logo's PNG file
- bmp, pnm, bpm, ppm - generated with ImageMagick's 'convert' from
tests/test_docs/sample-png.png
[0]: https://github.com/freedomofpress/dangerzone/issues/660#issuecomment-1914681487
[1]: https://github.com/freedomofpress/dangerzone/issues/660#issuecomment-1916803201
[2]: https://github.com/freedomofpress/dangerzone/issues/660#issuecomment-1916870347
[3]: https://github.com/freedomofpress/dangerzone/issues/688
2024-01-31 19:58:48 +00:00
Moon Sungjoon
fa22e96af7
Clean up HWP/HWPX MIME types
...
Use the MIME types actually used by the `file` command, which was
recently changed for the detection of the HWPX format [1].
application/hwp+zip -> application/x-hwp+zip
But the HWPX format includes a 'mimetype' file, which contains the
MIME type string "application/hwp+zip", so that was left so because
it may be possible to detect it as "application/hwp+zip".
[1]: ceef7ead3a
2023-08-01 14:35:28 +01:00
Moon Sungjoon
3e895adbab
Add hwp hwpx support
...
hwp/hwpx has several custom MIME types
.hwp:
- application/x-hwp
- application/haansofthwp
- application/vnd.hancom.hwp
.hwpx:
- application/haansofthwpx
- application/vnd.hancom.hwpx,
- application/hwp+zip
Fixes #243
2023-08-01 14:27:18 +01:00
Alex Pyrgiotis
a33dcfbb51
Replace First Look Media references
...
Update several references to First Look Media in the code, to better
reflect the current status, where Freedom of the Press Foundation has
taken over the stewardship of the project.
Fixes #343
2023-03-08 18:40:55 +02:00
deeplow
4d8e4c53e3
sort imports with isort linter
2022-08-22 10:15:26 +01:00
Micah Lee
57f9c6bf2c
Fix pyinstaller path
2021-06-29 16:53:58 -07:00
Micah Lee
26adc1b3ab
Fix finding version in PyInstaller spec
2021-06-16 14:06:26 -07:00
Micah Lee
4c7bde09c7
Fix macOS close immediately bug
2021-02-10 15:49:05 -08:00
Eike Rathke
6186538f70
Fix macOS app bundle ODF extensions .ods .odt
...
application/vnd.oasis.opendocument.spreadsheet ods
application/vnd.oasis.opendocument.text odt
2020-03-11 22:27:38 +01:00
Micah Lee
8845ac6440
Allow opening docm files
2020-03-03 19:23:46 +05:30
Micah Lee
e7f5ce0c38
Remove git submodule, and all references to the container
2020-02-27 15:21:30 -08:00
Micah Lee
f6370383d5
Fix path to macOS icons in pyinstaller spec
2020-02-21 09:28:10 -08:00
Micah Lee
583f8de8ff
Move Windows icon into share, and make get_resource_path work in Windows
2020-02-20 13:41:56 -08:00
Micah Lee
2ae39db1c1
Improve make_installer.bat script so that it works in the build dir, and outputs into the dist dir
2020-02-20 11:51:06 -08:00
Micah Lee
8974afa2b5
Working on making pyinstaller work for Windows as well as Mac, sharing the same pyinstaller.spec
2020-02-12 16:50:21 -08:00