Skip to content

Commit 1c4f5b4

Browse files
committed
Fix #1575
1 parent d584628 commit 1c4f5b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kittens/tui/images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_imagemagick(path, cmd, keep_stdout=True):
6161

6262

6363
def identify(path):
64-
p = run_imagemagick(path, ['identify', '-format', '%m %w %h %A', path])
64+
p = run_imagemagick(path, ['identify', '-format', '%m %w %h %A', '--', path])
6565
parts = tuple(filter(None, p.stdout.decode('utf-8').split()))
6666
mode = 'rgb' if parts[3].lower() == 'false' else 'rgba'
6767
return ImageData(parts[0].lower(), int(parts[1]), int(parts[2]), mode)
@@ -70,7 +70,7 @@ def identify(path):
7070
def convert(path, m, available_width, available_height, scale_up, tdir=None):
7171
from tempfile import NamedTemporaryFile
7272
width, height = m.width, m.height
73-
cmd = ['convert', '-background', 'none', path]
73+
cmd = ['convert', '-background', 'none', '--', path]
7474
scaled = False
7575
if scale_up:
7676
if width < available_width:

0 commit comments

Comments
 (0)