This commit is contained in:
Kovid Goyal 2016-05-06 16:33:54 +05:30
parent 4ba82e5cea
commit c2e64fe726

View File

@ -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()