Skip to content

Commit 2d86b5c

Browse files
author
Geoff Kendal
committed
Issue-1 - Fix invert bug
1 parent be39de5 commit 2d86b5c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

StarTSPImage/StarTSPImage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def buildRaster(img):
1010
basewidth = bytes_per_line * 8
1111
wpercent = (basewidth / float(img.width))
1212
hsize = int((float(img.height) * float(wpercent)))
13-
img = PIL.ImageOps.invert(img)
13+
img = PIL.ImageOps.invert(img.convert('RGB'))
1414
img = img.convert(mode='1', dither=Image.FLOYDSTEINBERG).resize((basewidth, hsize))
1515

1616
# PIL mode 1 image (1-bit pixels, black and white, one pixel per byte)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
version = '0.2.3'
3+
version = '0.2.4'
44

55
setup(
66
name='StarTSPImage',

0 commit comments

Comments
 (0)