Skip to content

Conversation

shuni64
Copy link
Contributor

@shuni64 shuni64 commented Oct 26, 2019

Add support for displaying an image specified with the --image option using the kitty terminal graphics protocol.

@o2sh o2sh requested review from spenserblack and andymac-2 and removed request for spenserblack October 26, 2019 15:26
@o2sh o2sh removed the request for review from andymac-2 October 26, 2019 17:03
@o2sh
Copy link
Owner

o2sh commented Oct 27, 2019

DeepinScreenshot_select-area_20191027153151

@o2sh
Copy link
Owner

o2sh commented Oct 27, 2019

Impressive stuff @CephalonRho
This is way over my head, so I'm not even gonna try doing a code review on this one...(@spenserblack || @andymac-2 any volonteer?).

This works pretty well, but has very limited support (right now only kitty itself implements that protocol) so I also added a basic trait to have multiple image backends for different terminal emulators.

That's the best way to do it program to interfaces, not implementations, thus paving the way for more support in the future like catimg, SIXEL, w3m...

@spenserblack
Copy link
Collaborator

Looks great to me! 👍
Thanks for structuring this so that more backends can be supported in the future

@o2sh o2sh merged commit d66e76f into o2sh:master Oct 27, 2019
@shuni64 shuni64 deleted the display-image branch October 27, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants