8000 Removed quantize from _colorspace() method of pgmagick engine to fix … · pygeek/django-thumbnail@44000f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44000f0

Browse files
committed
Removed quantize from _colorspace() method of pgmagick engine to fix issue with reduced colors and dithering. Thanks hhatto. Refs 8000 jazzband#52.
1 parent 075888b commit 44000f0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sorl/thumbnail/engines/pgmagick_engine.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ def _orientation(self, image):
5050
def _colorspace(self, image, colorspace):
5151
if colorspace == 'RGB':
5252
image.type(ImageType.TrueColorMatteType)
53-
image.quantizeColorSpace(ColorspaceType.RGBColorspace)
5453
elif colorspace == 'GRAY':
5554
image.type(ImageType.GrayscaleMatteType)
56-
image.quantizeColorSpace(ColorspaceType.GRAYColorspace)
5755
else:
5856
return image
59-
image.quantize()
6057
return image
6158

6259
def _scale(self, image, width, height):

0 commit comments

Comments
 (0)
0