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

Add support for displaying a custom image instead of ascii art #113

Merged
merged 3 commits into from
Oct 27, 2019

Conversation

shuni64
Copy link
Collaborator

@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