From e50a7fa65993fa33e0bded66d93bff8d00c93210 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 6 Jul 2018 13:18:15 +0200 Subject: [PATCH] use python3 --- oxposterframe | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oxposterframe b/oxposterframe index afd3422..d36788b 100755 --- a/oxposterframe +++ b/oxposterframe @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 # GPL 2010 @@ -9,7 +9,7 @@ from optparse import OptionParser import subprocess import tempfile -import Image +from PIL import Image if __name__ == '__main__': @@ -43,14 +43,14 @@ if __name__ == '__main__': width = int(int(opts.size) * (float(width) / height)) height = int(opts.size) width = width - width % 2 - ox = abs(height - width) / 2 + ox = int(abs(height - width) / 2) oy = 0 else: height = int(int(opts.size) * (float(height) / width)) width = int(opts.size) height = height - height % 2 ox = 0 - oy = abs(height - width) / 2 + oy = int(abs(height - width) / 2) frame = frame.resize((width, height), Image.ANTIALIAS)