projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add show profile
[rainbowstream.git]
/
rainbowstream
/
c_image.py
diff --git
a/rainbowstream/c_image.py
b/rainbowstream/c_image.py
index 59e64b0c67c75e5ff75a579252d67a6f25bd8862..ec0e47e5114dd278a561cf19ce1c3163913a7b25 100644
(file)
--- a/
rainbowstream/c_image.py
+++ b/
rainbowstream/c_image.py
@@
-1,5
+1,4
@@
from PIL import Image
from PIL import Image
-from functools import partial
from os.path import join, dirname, getmtime, exists, expanduser
from .config import *
from os.path import join, dirname, getmtime, exists, expanduser
from .config import *
@@
-34,7
+33,7
@@
def image_to_display(path):
width = min(w, int(columns) - 2 * IMAGE_SHIFT)
height = int(float(h) * (float(width) / float(w)))
height //= 2
width = min(w, int(columns) - 2 * IMAGE_SHIFT)
height = int(float(h) * (float(width) / float(w)))
height //= 2
- i = i.resize((width, height), Image.
BICUBIC
)
+ i = i.resize((width, height), Image.
ANTIALIAS
)
height = min(height, IMAGE_MAX_HEIGHT)
for y in xrange(height):
height = min(height, IMAGE_MAX_HEIGHT)
for y in xrange(height):