Fix #1721 by disabling \\?\ prefix for IM

This commit is contained in:
Adrian Sampson 2015-11-30 08:00:34 +01:00
parent a333777946
commit 5c8acc9a49
2 changed files with 7 additions and 3 deletions

View file

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

View file

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