Fix #6328 (cannot obtain metadata from server)

This commit is contained in:
Kovid Goyal 2010-07-28 15:43:53 -06:00
parent a4c2b6d255
commit b2cf76de50

View File

@ -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)