forked from josch/img2pdf
im was not defined -- don't print it (closes: #61)
This commit is contained in:
parent
d1f101c36a
commit
07903e9ef1
1 changed files with 2 additions and 7 deletions
|
@ -1021,14 +1021,9 @@ def get_imgmetadata(imgdata, imgformat, default_dpi, colorspace, rawdata=None):
|
||||||
elif value == 8:
|
elif value == 8:
|
||||||
rotation = 270
|
rotation = 270
|
||||||
elif value in (2, 4, 5, 7):
|
elif value in (2, 4, 5, 7):
|
||||||
raise Exception(
|
raise Exception("Unsupported flipped rotation mode (%d)" % value)
|
||||||
'Image "%s": Unsupported flipped '
|
|
||||||
"rotation mode (%d)" % (im.name, value)
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise Exception("Invalid rotation (%d)" % value)
|
||||||
'Image "%s": invalid rotation (%d)' % (im.name, value)
|
|
||||||
)
|
|
||||||
|
|
||||||
logging.debug("rotation = %d°", rotation)
|
logging.debug("rotation = %d°", rotation)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue