mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #6328 (cannot obtain metadata from server)
This commit is contained in:
parent
a4c2b6d255
commit
b2cf76de50
@ -144,6 +144,8 @@ def compose_image(canvas, image, left, top):
|
|||||||
int(top))
|
int(top))
|
||||||
|
|
||||||
def load_image(path):
|
def load_image(path):
|
||||||
|
if isinstance(path, unicode):
|
||||||
|
path = path.encode(filesystem_encoding)
|
||||||
img = alloc_wand('NewMagickWand')
|
img = alloc_wand('NewMagickWand')
|
||||||
if not p.MagickReadImage(img, path):
|
if not p.MagickReadImage(img, path):
|
||||||
severity = p.ExceptionType(0)
|
severity = p.ExceptionType(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user