Display images in the terminal with python
ValueError
exception messages (d296a31).UnboundLocalError
in term_image.utils.get_cell_size()
when ioctl fails and queries are disabled (e12ffa8, #104).Removed and modified a lot of features standing in the way of what's to come!
LINES
render method of kitty and iterm2 render styles (4d27055).UrwidImageScreen.clear_images()
(08f4e4d, 8b895ce).term_image.utils.get_cell_size()
to the public API (#87).BaseImage.set_size()
BaseImage.size
ANIM
render method to the iterm2
render style (#92).term_image.exceptions.RenderError
(#94).KeyboardInterrupt
is no longer raised when SIGINT
is used to end an animation (fa47742).UrwidImageScreen.clear()
now clears images also (ed3baa3).InvalidSizeError
no longer inherits from ValueError
(26ea969).UrwidImage
now raises UrwidImageError
instead of ValueError
when rendered as a fixed widget (a612b59).Size.FIT_TO_WIDTH
no longer influences size validation (#89).BaseImage.set_size()
(#89).
ValueError
.TypeError
when both width and height are not None
but not both are integers.None
.ValueError
: Available size too small.InvalidSizeError
.None
.0
and -2
respectively.N
to A
in the method field of the iterm2
style-speific render format specification (#92).term_image.exceptions.StyleError
is now raised instead of style-specific exceptions (#93).term_image.exceptions.RenderError
is now raised for errors that occur during rendering (#94).BaseImage.forced_support
can no longer be set via instances (#95).ITerm2Image.native_anim_max_bytes
can no longer be set or deleted via instances (#95).UrwidImage.clear_all()
(08f4e4d) and UrwidImage.clear()
(8b895ce).
UrwidImageScreen.clear_images()
.BaseImage
, BaseImage.from_file()
, BaseImage.from_url()
, etc.scale
, scale_x
and scale_y
properties of BaseImage
.iterm2
style-specific render parameters (#92).
ANIM
render method.GraphicsImageError
TextImageError
BlockImageError
ITerm2ImageError
KittyImageError
<Style>Image.style
str(<Style>Image)
term_image.image.ImageMeta
from the public API (9168d17).1
, for WHOLE render method and native animations (f82aef0).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).term_image.utils
(#70):
get_terminal_name_version()
get_terminal_size()
read_tty_all()
write_tty()
term_image.widget
subpackageterm_image.widget.UrwidImage
term_image.widget.UrwidImageCanvas
term_image.widget.UrwidImageScreen
KittyImage.clear()
(97eceab).z_index
style-specific parameter of the kitty render style (#74).image.rendered_size
(regardless of the value of image.scale
) can no longer be null (contain 0
) (#78).
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()
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
Size
enumerationImageMeta
metaclass
style
property to image classesterm_image.utils.lock_tty()
multi-process integration (#66).--log-file
and "log file" validation (#69).term_image.image.Size
enumeration (#64).
term_image.utils.DISABLE_QUERIES
to disable terminal queries (#66).clear()
method to each of KittyImage
and Iterm2Image
(#67)..image.ImageMeta
with a style
property (#67).AutoCellRatio.is_supported
(#68)--fit
and --original-size
CL options (#64).--config
and --no-config
CL options (#69).size
, width
and height
properties to Size.FIT
(#64).BaseImage.set_size()
(#64).
Size
enum mumbers.TermImageWarning
from the top-level into term_image.exceptions
.TermImageWarning
is now issued instead of Userwarning
when not running in a terminal or multi-process synchronization is unsupported.str(ImageClass)
now returns the name of the render style (or category) (#67).FontRatio
-> AutoCellRatio
(#68)
AUTO
-> FIXED
and FULL_AUTO
-> DYNAMIC
Size.AUTO
(#64).1
i.e no vertical padding (#64).Size.AUTO
for all images (#64).term_image.get_font_ratio()
-> term_image.get_cell_ratio()
term_image.set_font_ratio()
-> term_image.set_cell_ratio()
-F/--font-ratio
-> -C/--cell-ratio
--auto-font-ratio
-> --auto-cell-ratio
term_image.image.TermImage
.TermImageException
and InvalidSize
from term_image.exceptions
.term_img
.term_image.image.ImageSource
enum.ImageIterator
instance.ImageIterator
now caches frames by the image's rendered size, not the unscaled size.ImageIterator.seek()
now raises TermImageError
after the iterator has been exhausted/finalized.See the commit messages for 0.4.1 for the full logs.
TermImage
-> BlockImage
TermImageException
-> TermImageError
InvalidSize
-> InvalidSizeError
ImageIterator
(#42).SIGINT
while processing sources (#56).BaseImage
, the baseclass of all image classes (#34).is_supported()
class method for render style support detection (#34).term_image.utils
submodule. (#34, #36)AutoImage()
, from_file()
and from_url()
in term_image.image
.BaseImage.source_type
property (#38).KittyImage
class (#39).BaseImage.set_render_method()
(#39).ImageIterator.seek()
(#42).BaseImage
), TextImage
and GraphicsImage
(#44).term_image.FontRatio
enumeration class (#45).ITerm2Image
class, iterm2
render style; Support for the iTerm2 inline image protocol (#50).term_image.TermImageWarning
; pacage specific warning category (#50).ImageIterator.loop_no
property (7de6b4a).--style
command-line option for render style selection (#37).kitty
render style choice for the --style
command-line option (#39).--force-style
to bypass render style support checks (#44).--auto-font-ratio
for automatic font ratio determination (#45).--kz/--kitty-z-index
'kitty' style-specific option (#49).iterm2
render style choice for the --style
command-line option (#50).--itn/--iterm2-native
and --itn-max/--iterm2-native-maxsize
style-specific CL options for 'iterm2' native animation (#50).--kc/--kitty-compress
'kitty' style-specific option (#51).--query-timeout
command-line option (3b658f3).--itc/--iterm2-compress
, --itjq/--iterm2-jpeg-quality
and --itnrff/iterm2-no-read-from-file
style-specific command-line options (#55).-multi
command-line option (2c2d240).--swap_win_size
and --no-swap_win_size
command-line options (4f9178f).no multi
, query timeout
and style
config options (2c2d240).swap win size
config option (4f9178f).TermImage
is now a subclass of BaseImage
(#34).BaseImage.source
now raises TermImageException
when invoked after the instance has been finalized (#38).repr()
of image instances (#38).TermImage
to TextImage
(#44).TermImage
to BlockImage
(#46).TermImageException
to TermImageError
.InvalidSize
to InvalidSizError
.BICUBIC
to BOX
(#54).-S
from --scroll
to --style
(#44).font ratio
config option to null
(#45).TermImage.draw()
(#29).0
.TermImage.draw()
) (#32).term_img
(#28).term_img.image.ImageIterator
for efficient iteration over rendered frames of animated images.TermImage
.TermImage.draw()
.INVALID_ARG
exit code for invalid command-line argument values.--max-pixels-cli
to apply "max pixels" config and --max-pixels
in CLI mode.--reset-config
to restore default configurations.--repeat
, --anim-cache
, --cache-all-anim
, --cache-no-anim
.--checkers
, --getters
, --grid-renderers
, --no-multi
.-q | --quiet
.processName
and threadName
log fields (only at DEBUG logging level).anim cache
, log file
, max notifications
, checkers
, getters
and grid renderers
.TermImage.source
now gives the absolute file path for file-sourced instances instead of the real path.TermImage.n_frames
is first invoked.TermImage.set_size()
:
check_height
-> fit_to_width
check_width
-> fit_to_height
ignore_oversize
paramter of TermImage.draw()
to check_size
and modified the semantics accordingly.--scroll
, --fit-to-width
and --oversize
.cell width
option to the range 30 <= x <= 50
.frame duration
config option.