diff --git a/src/calibre/utils/magick_draw.py b/src/calibre/utils/magick_draw.py index 0962afe807..c5609a48be 100644 --- a/src/calibre/utils/magick_draw.py +++ b/src/calibre/utils/magick_draw.py @@ -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)