We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d584628 commit 1c4f5b4Copy full SHA for 1c4f5b4
kittens/tui/images.py
@@ -61,7 +61,7 @@ def run_imagemagick(path, cmd, keep_stdout=True):
61
62
63
def identify(path):
64
- p = run_imagemagick(path, ['identify', '-format', '%m %w %h %A', path])
+ p = run_imagemagick(path, ['identify', '-format', '%m %w %h %A', '--', path])
65
parts = tuple(filter(None, p.stdout.decode('utf-8').split()))
66
mode = 'rgb' if parts[3].lower() == 'false' else 'rgba'
67
return ImageData(parts[0].lower(), int(parts[1]), int(parts[2]), mode)
@@ -70,7 +70,7 @@ def identify(path):
70
def convert(path, m, available_width, available_height, scale_up, tdir=None):
71
from tempfile import NamedTemporaryFile
72
width, height = m.width, m.height
73
- cmd = ['convert', '-background', 'none', path]
+ cmd = ['convert', '-background', 'none', '--', path]
74
scaled = False
75
if scale_up:
76
if width < available_width:
0 commit comments