mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:43:38 +02:00
...
This commit is contained in:
parent
c45a2dac8f
commit
0fc654b918
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue