Releases
v0.6.0
0.6.0 (New features, API changes, library/viewer separation and fixes)
Highlights
Moved the image viewer to a separate project, termvisage
Urwid image support
0.6.0 - 2023-03-30
Fixed
Resource leaks via unclosed PIL image instances (cdc6650 ).
Unhandled initialization of images with null-sized PIL image instances (54665f8 ).
'iterm2' render output on non-Konsole terminal emulators when rendered height is 1
, for WHOLE render method and native animations (f82aef0 ).
Uppercase letters in hex BG colors being flagged as invalid (b4533d5 ).
Added
term_image.image.auto_image_class()
(538d408 in #70 , 45898e8 ).
BaseImage.forced_support
for render style forced support (5979612 in #70 , 889a4ca ).
term_image.DEFAULT_QUERY_TIMEOUT
(be603f7 in #70 , #82 ).
New utilities in term_image.utils
(#70 ):
get_terminal_name_version()
get_terminal_size()
read_tty_all()
write_tty()
Support for clearing kitty images by z-index (97eceab ).
Support for clearing iterm2 images on konsole by intersection with cursor position (807a9ec ).
Widgets and related classes to display images with urwid (#73 ).
term_image.widget
subpackage
term_image.widget.UrwidImage
term_image.widget.UrwidImageCanvas
term_image.widget.UrwidImageScreen
Support for terminal-synchronized output (#80 ).
Support for path-like objects as image sources (f359d4e ).
Changed
(BREAKING!) Redefined KittyImage.clear()
(97eceab ).
(BREAKING!) Changed the valid values for the z_index
style-specific parameter of the kitty render style (#74 ).
Computed image size and image.rendered_size
(regardless of the value of image.scale
) can no longer be null (contain 0
) (#78 ).
No more "Image size or scale too small" error at render time.
(BREAKING!) Redefined gloabl settings and moved all to package top-level (#82 ).
term_image.utils.set_query_timeout()
-> term_image.set_query_timeout()
term_image.utils.DISABLE_QUERIES
-> term_image.disable_queries()
and term_image.enable_queries()
term_image.utils.SWAP_WIN_SIZE
-> term_image.enable_win_size_swap()
and term_image.disable_win_size_swap()
Removed restrictions on iterm2 native animation (#84 ).
Replaced ITerm2Image
class variables with class and class/instance properties (c4050bd ).
JPEG_QUALITY
-> jpeg_quality
NATIVE_ANIM_MAXSIZE
-> native_anim_max_bytes
READ_FROM_FILE
-> read_from_file
Store downloaded image files in an OS/env-specific temporary directory (1750e75 ).
Removed
The CLI and TUI (#72 ).
term_image.utils.read_tty()
from the public API (#70 ).
You can’t perform that action at this time.