We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be39de5 commit 2d86b5cCopy full SHA for 2d86b5c
2 files changed
StarTSPImage/StarTSPImage.py
@@ -10,7 +10,7 @@ def buildRaster(img):
10
basewidth = bytes_per_line * 8
11
wpercent = (basewidth / float(img.width))
12
hsize = int((float(img.height) * float(wpercent)))
13
- img = PIL.ImageOps.invert(img)
+ img = PIL.ImageOps.invert(img.convert('RGB'))
14
img = img.convert(mode='1', dither=Image.FLOYDSTEINBERG).resize((basewidth, hsize))
15
16
# PIL mode 1 image (1-bit pixels, black and white, one pixel per byte)
setup.py
@@ -1,6 +1,6 @@
1
from setuptools import setup, find_packages
2
3
-version = '0.2.3'
+version = '0.2.4'
4
5
setup(
6
name='StarTSPImage',
0 commit comments