diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py index 6ef7770f8..a392ee5d2 100644 --- a/beets/util/artresizer.py +++ b/beets/util/artresizer.py @@ -92,8 +92,9 @@ def im_resize(maxwidth, path_in, path_out=None): # compatibility. try: util.command_output([ - b'convert', util.syspath(path_in), - b'-resize', b'{0}x^>'.format(maxwidth), path_out + b'convert', util.syspath(path_in, prefix=False), + b'-resize', b'{0}x^>'.format(maxwidth), + util.syspath(path_out, prefix=False), ]) except subprocess.CalledProcessError: log.warn(u'artresizer: IM convert failed for {0}', @@ -119,7 +120,8 @@ def pil_getsize(path_in): def im_getsize(path_in): - cmd = [b'identify', b'-format', b'%w %h', util.syspath(path_in)] + cmd = [b'identify', b'-format', b'%w %h', + util.syspath(path_in, prefix=False)] try: out = util.command_output(cmd) except subprocess.CalledProcessError as exc: diff --git a/docs/changelog.rst b/docs/changelog.rst index ac6ded79c..a78bfb727 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -69,6 +69,8 @@ Fixes: * :doc:`/plugins/convert`: Fix a crash with Unicode paths in ``--pretend`` mode. :bug:`1735` * Fix a crash when sorting by nonexistent fields on queries. :bug:`1734` +* Probably fix some mysterious errors when dealing with images using + ImageMagick on Windows. :bug:`1721` .. _Emby Server: http://emby.media