Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[icat] reading PNGs from STDIN silently fails #1920

rien333 opened this issue Aug 23, 2019 · 0 comments

[icat] reading PNGs from STDIN silently fails #1920

rien333 opened this issue Aug 23, 2019 · 0 comments


Copy link

rien333 commented Aug 23, 2019

Not sure what component is at fault here, but icat seems to silently fail in outputing an image when reading any PNG image from STDIN:

cat foo.png | kitty icat

No difference with --stdin=yes. Appending --transfer-mode=stream outputs the image, but also outputs the following error:

cat foo.png |  kitty icat  --transfer-mode=stream
File "/usr/lib/python3.7/", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/bin/../lib/kitty/kittens/icat/", line 387, in <module>
  File "/usr/bin/../lib/kitty/kittens/icat/", line 370, in main
    process_single_item(item, args, url_pat)
  File "/usr/bin/../lib/kitty/kittens/icat/", line 309, in process_single_item
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/stdin-image-data-t71wm64i'

Appending the transfer-mode flag does work as expected with JPG files (so no error, and a correctly displayed image), and so does regular jpg reading from stdin.

Possibly related to/duplicate of #1320 and #1340. Note that your curl example from #1340 does not work, at least not when using PNGs. It works fine when reading in jpg files.

Version Info

Arch Linux, with the following kitty version (compiled from HEAD):

kitty --version
kitty 0.14.3 created by Kovid Goyal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

1 participant