projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3cf675
)
Stopped images having their height halved when using blocky printing
author
Joseph Hallett
<bogwonch@bogwonch.net>
Thu, 30 Jul 2015 12:18:57 +0000
(13:18 +0100)
committer
Joseph Hallett
<bogwonch@bogwonch.net>
Thu, 30 Jul 2015 12:18:57 +0000
(13:18 +0100)
rainbowstream/c_image.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/c_image.py
b/rainbowstream/c_image.py
index 87726bf85a85843ab0d7b085a4d2208c35c47493..e4d450564d203a10ab92a03fe6e87d949dc81ae3 100644
(file)
--- a/
rainbowstream/c_image.py
+++ b/
rainbowstream/c_image.py
@@
-54,7
+54,6
@@
def image_to_display(path, start=None, length=None):
i.load()
width = min(w, length)
height = int(float(h) * (float(width) / float(w)))
- height //= 2
i = i.resize((width, height), Image.ANTIALIAS)
height = min(height, c['IMAGE_MAX_HEIGHT'])