Last active
August 29, 2015 14:01
-
-
Save saitoha/9c6080a19c24983bdf42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drcs/drcs.py b/drcs/drcs.py | |
index ee1bd43..d8d244d 100644 | |
--- a/drcs/drcs.py | |
+++ b/drcs/drcs.py | |
@@ -32,8 +32,8 @@ class DrcsConverter: | |
self.DCS = '\x1bP' | |
self.ST = '\x1b\\' | |
- self.cellwidth = 15 | |
- self.cellheight = 24 | |
+ self.cellwidth = 8 | |
+ self.cellheight = 16 | |
self.columns = columns | |
width, height = image.size | |
if rows is None: | |
@@ -45,6 +45,7 @@ class DrcsConverter: | |
self._use_unicode = use_unicode | |
width = self.cellwidth * self.columns | |
height = self.cellheight * rows | |
+ height += 6 - height % 6 | |
image = image.resize((width, height)) | |
if ncolor > 256: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment