summaryrefslogtreecommitdiff
path: root/src/app/ssd1306-bad-apple/frames-to-cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/ssd1306-bad-apple/frames-to-cc')
-rwxr-xr-xsrc/app/ssd1306-bad-apple/frames-to-cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/ssd1306-bad-apple/frames-to-cc b/src/app/ssd1306-bad-apple/frames-to-cc
index 0ae95ec..bcbabf7 100755
--- a/src/app/ssd1306-bad-apple/frames-to-cc
+++ b/src/app/ssd1306-bad-apple/frames-to-cc
@@ -1,11 +1,11 @@
#!/usr/bin/env python3
from PIL import Image
+import os
import sys
import zlib
-buf_w = 128
-buf_h = 64
+buf_w, buf_h = map(int, os.getenv("size", "128x64").split("x"))
def load_image(filename):
im = Image.open(filename)