From c2e64fe726e6d17ad2f53bd54ae4ad66bfcd8ff7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 May 2016 16:33:54 +0530 Subject: [PATCH] ... --- src/calibre/utils/img.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/utils/img.py b/src/calibre/utils/img.py index 53a0f7c2c7..673a1c215b 100644 --- a/src/calibre/utils/img.py +++ b/src/calibre/utils/img.py @@ -66,6 +66,8 @@ def overlay(img, canvas=None, left=0, top=0): canvas = QImage(img.size(), QImage.Format_RGB32) canvas.fill(Qt.white) if imageops is None: + # This is for people running from source who have not updated the + # binary and so do not have the imageops module from PyQt5.Qt import QPainter from calibre.gui2 import ensure_app ensure_app()