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

Image support #372

Closed
wants to merge 28 commits into from
Closed

Image support #372

wants to merge 28 commits into from

Conversation

ihabunek
Copy link
Owner

Rebased and squashed #319 since its history was getting very messy.

@danschwarz danschwarz force-pushed the images branch 2 times, most recently from 8c00220 to a620588 Compare June 24, 2023 02:39
@ihabunek ihabunek force-pushed the images branch 2 times, most recently from 02e288e to 4167933 Compare June 30, 2023 09:31
@ihabunek
Copy link
Owner Author

I'll periodically rebase this on master to avoid getting conflicted again.

@ihabunek
Copy link
Owner Author

ihabunek commented Jul 7, 2023

@danschwarz Doing some work on this branch so I'll need to rebase again. Just FYI. Sorry if i break your stuff.

I'm trying to make it so that image support is optional so TUI works without term_image installed.

@danschwarz
Copy link
Collaborator

Ok, I'm fine with anything that gets image support into the master branch- I'll check for any breakage.

jort93 and others added 2 commits July 15, 2023 09:54
@danschwarz
Copy link
Collaborator

See #389

--image-format='kitty'|'iterm'|'block' (default is block)
autodetection was causing intermittent phantom character
output to the terminal in some configurations, generally
over SSH connections. Switching to a command line option
eliminates the problematic autodetection code.

As a side effect, EmojiText widget had to be removed.
All image code is now a soft dependency. If the term-image
and/or pillow libraries are not loaded, the tui will work
fine without displaying images.

Note that tests/test_utils.py still has a dependency on pillow
due to its use of Image for tsting the LRUCache.
@ihabunek
Copy link
Owner Author

Merged manually, thanks for this. Sorry for dragging my feet on this one.

@ihabunek ihabunek closed this Apr 13, 2024
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