From 0fc654b918eba52907aa1b4c57f0c2738599a236 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Dec 2016 14:07:16 +0530 Subject: [PATCH] ... --- src/calibre/utils/img.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/img.py b/src/calibre/utils/img.py index 7097488dbd..2bd3687513 100644 --- a/src/calibre/utils/img.py +++ b/src/calibre/utils/img.py @@ -84,7 +84,7 @@ def image_from_x(x): def image_and_format_from_data(data): - ' Create an image object from the specified data which should be a bytsestring and also return the format of the image ' + ' Create an image object from the specified data which should be a bytestring and also return the format of the image ' ba = QByteArray(data) buf = QBuffer(ba) buf.open(QBuffer.ReadOnly) @@ -548,6 +548,7 @@ def test(): # {{{ image_to_data(img, fmt='GIF') # }}} + if __name__ == '__main__': # {{{ args = sys.argv[1:] infile = args.pop(0)