Skip to content

Commit 460d4b8

Browse files
update
1 parent d7cbd35 commit 460d4b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

image_to_midi/image_to_midi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def img_to_ascii(path,
5050
colors = []
5151
for i in range(HEIGHT):
5252
for j in range(WIDTH):
53-
pixel = im_resize.getpixel((j, i))
53+
pixel = im_resize.getpixel((j, i))[:3]
5454
colors.append(pixel)
5555
txt += get_char(*pixel, unit, ascii_character_set)
5656
txt += '\n'
@@ -62,7 +62,7 @@ def img_to_ascii(path,
6262
else:
6363
for i in range(HEIGHT):
6464
for j in range(WIDTH):
65-
pixel = im_resize.getpixel((j, i))
65+
pixel = im_resize.getpixel((j, i))[:3]
6666
txt += get_char(*pixel, unit, ascii_character_set)
6767
txt += '\n'
6868
if output:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
setup(
55
name='image_to_midi',
66
packages=['image_to_midi'],
7-
version='0.18',
7+
version='0.19',
88
license='LGPLv2.1',
99
description=
1010
'This is a python package that turns any images into MIDI files that views the same as them',
1111
author='Rainbow-Dreamer',
1212
author_email='[email protected]',
1313
url='https://github.com/Rainbow-Dreamer/image_to_midi',
1414
download_url=
15-
'https://github.com/Rainbow-Dreamer/image_to_midi/archive/0.18.tar.gz',
15+
'https://github.com/Rainbow-Dreamer/image_to_midi/archive/0.19.tar.gz',
1616
keywords=['music', 'image', 'midi'],
1717
install_requires=['musicpy', 'pillow'],
1818
classifiers=[

0 commit comments

Comments
 (0)