diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
commit | fcc5224904648a8e6eb528d7603154160a20022f (patch) | |
tree | 3bfce096b38a9cea8eed13fc70c1526c456e9abd /app-text/calibre/files | |
parent | 2fd57282f0262ca084e05b0f2c63fbada395d02b (diff) |
gentoo resync : 02.02.2022
Diffstat (limited to 'app-text/calibre/files')
-rw-r--r-- | app-text/calibre/files/calibre-5.35.0-jxr-test.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-text/calibre/files/calibre-5.35.0-jxr-test.patch b/app-text/calibre/files/calibre-5.35.0-jxr-test.patch new file mode 100644 index 000000000000..bec72c15cb8b --- /dev/null +++ b/app-text/calibre/files/calibre-5.35.0-jxr-test.patch @@ -0,0 +1,24 @@ +Avoid calling libjxr's JxrDecApp as we currently don't package it. +--- a/src/calibre/utils/img.py ++++ b/src/calibre/utils/img.py +@@ -118,8 +118,6 @@ + i = QImage() + if not i.loadFromData(data): + q = what(None, data) +- if q == 'jxr': +- return load_jxr_data(data) + raise NotImage(f'Not a valid image (detected type: {q})') + return i + +@@ -645,11 +643,6 @@ + despeckle_image(img) + remove_borders_from_image(img) + image_to_data(img, fmt='GIF') +- raw = subprocess.Popen([get_exe_path('JxrDecApp'), '-h'], +- creationflags=subprocess.DETACHED_PROCESS if iswindows else 0, +- stdout=subprocess.PIPE).stdout.read() +- if b'JPEG XR Decoder Utility' not in raw: +- raise SystemExit('Failed to run JxrDecApp') + # }}} + + |