File: fix-format_to_extension.patch

package info (click to toggle)
pilkit 2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 536 kB
  • sloc: python: 858; makefile: 130
file content (23 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Subject: [PATCH] Fix _format_to_extension for 'PNG' format:
From: Miroslav Kravec <kravec.miroslav@gmail.com>
Origin: https://github.com/matthewwithanm/pilkit/commit/c3702a84
Bug-Debian: https://bugs.debian.org/921898
Last-Update: 2019-02-23

do not return 'apng' extension for 'PNG' format
---
 pilkit/utils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pilkit/utils.py b/pilkit/utils.py
index 6b8573d..0758371 100644
--- a/pilkit/utils.py
+++ b/pilkit/utils.py
@@ -10,6 +10,7 @@
 PALETTE_TRANSPARENCY_FORMATS = ['PNG', 'GIF']
 DEFAULT_EXTENSIONS = {
     'JPEG': '.jpg',
+    'PNG': '.png',
 }