-
Notifications
You must be signed in to change notification settings - Fork 61
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
More image options? #103
Comments
If you are on a Mac, and use iTerm, you can use I have been doing that for my slides, and if you refer to the doc there are two numbers you can edit in the generated code to adjust the width and height so it fits in the presentation |
May I ask how should we generate the ANSI Escape sequence and which part shall we paste to the slides? |
imgcat name_of_image.png | pbcopy Will render the image as an escape sequence and put it in your clipboard. You can then paste it in your slide:
Don't convert a big image and resize them down first because all of those bytes as text will make your text file hard to edit (and quite big). (instead of Once you have the escape squence for your image you can edit some flags to make it fit your slide. You can add more flags before the
Here I added The full docs are here: https://iterm2.com/documentation-images.html Here's a full example: ---
title: An image has appeared
author: Tenchi
patat:
wrap: true
margins:
left: 30
right: 30
...
# An image has appeared
## The image
Here's an image:
�]1337;File=name=ZmF2aWNvbi5wbmc=;size=1335;inline=1;width=10:iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIEDhkEucE1HgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAEm0lEQVRYw9WXy29UVRzHP+ecO3fuTGdaOrTQIoUBgQoCgkUNGAkGoxhDdKGuWJgY/Avc6NKFG7e4c2viEh/RxOBrIQ1BCCD4ojz64Flm2mk7r/s4x8XtzHQ6M9BBCPEkd3Fzz+N7fr/v7/f9XvH2kZzhEQ7JIx6PHIC18GXXOounBix6kgInIh7oQSXPMJU3nJ/wGR7xMYsBrE5J3t3rkEo83KDsWmdxZ67IPzeDegATWc3HXxcYSlv0LZPEbIESIFoEYkWnZM1yBcDVyYCxTIA2zedrDQXPcHvG8Pu4z7Up3TwF41nNeNZd0k32b4nw3osxAIYveRw95f53DiwcEQWq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fnXaZK5tFrgde3mpzYJtN37Lm3D552ePL0y4XbwXNAVREqSsmSTqChCMQQGAMs0XDbMkwXTAtHa4QkOoIHXJXXGDJkLAF1zBTNMwUdVWUWtryogtFV3Mz137zMSaU9cycgcz/5Of0X3X54LhrEFQDAAAAAElFTkSuQmCC�
1234567890
10 characters wide
Hope you like it! Which looks like this: Have fun |
Apart from the workaround @Tenchi2xh posted, I am not sure if we want to support this. There are a few different, non-compatible ways to display images in terminals, so I prefer to go with the "lowest common denominator" for now; and displaying a single image as large as possible seems to be a good compromise. That being said, I'm open to proposals, and if there's a compelling use case, the first thing to do would be to figure out a good syntax to describe the width/height that |
Pasting raw escape sequences works for the Kitty graphics protocol as well. Copy the output of The escape sequence should look something like this:
|
Rather than copying the output of
|
Nice! I was experimenting with my own script that did something similar. Thanks for adding this. |
First of all, I really like the project. I used to use mdp, but really needed images for my slides.
Is there a way to display images within a slide instead of in full screen?
Would it then be possible to add multiple images to a slide?
The text was updated successfully, but these errors were encountered: