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)