From 7f36fdd3cd524b83bede0bf5935fe19dc8dc3956 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 1 Jun 2015 22:09:08 +0200 Subject: [PATCH] Pass bytestrings to command_output Fix #1485 --- beets/util/artresizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py index d891a695c..741ebda1b 100644 --- a/beets/util/artresizer.py +++ b/beets/util/artresizer.py @@ -119,7 +119,7 @@ def pil_getsize(path_in): def im_getsize(path_in): try: - out = util.command_output(['identify', '-format', '%w %h', + out = util.command_output([b'identify', b'-format', b'%w %h', util.syspath(path_in)]) except subprocess.CalledProcessError: log.warn(u'IM cannot compute size of {0}',