mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 05:51:33 +02:00
Fix #6328 (cannot obtain metadata from server)
This commit is contained in:
parent
a4c2b6d255
commit
b2cf76de50
1 changed files with 2 additions and 0 deletions
|
|
@ -144,6 +144,8 @@ def compose_image(canvas, image, left, top):
|
|||
int(top))
|
||||
|
||||
def load_image(path):
|
||||
if isinstance(path, unicode):
|
||||
path = path.encode(filesystem_encoding)
|
||||
img = alloc_wand('NewMagickWand')
|
||||
if not p.MagickReadImage(img, path):
|
||||
severity = p.ExceptionType(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue