PIL fixes
This commit is contained in:
parent
8768128629
commit
9b83231721
1 changed files with 5 additions and 10 deletions
|
@ -1,18 +1,12 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vi:si:et:sw=4:sts=4:ts=4
|
# vi:si:et:sw=4:sts=4:ts=4
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
import os
|
import os
|
||||||
|
|
||||||
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
|
||||||
|
|
||||||
# using virtualenv's activate_this.py to reorder sys.path
|
|
||||||
#activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
|
|
||||||
#execfile(activate_this, dict(__file__=activate_this))
|
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import Image
|
|
||||||
import ImageDraw
|
from PIL import Image
|
||||||
|
from PIL import ImageDraw
|
||||||
import json
|
import json
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import ox
|
import ox
|
||||||
|
@ -20,6 +14,7 @@ from ox.image import drawText, getRGB, getTextSize, wrapText
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
||||||
static_root = os.path.join(os.path.dirname(__file__), 'data')
|
static_root = os.path.join(os.path.dirname(__file__), 'data')
|
||||||
|
|
||||||
def get_frame(id, height, position):
|
def get_frame(id, height, position):
|
||||||
|
|
Loading…
Reference in a new issue