0.7.0 (Paving the way for the future)
0.7.0 - 2023-06-05
Highlights
Removed and modified a lot of features standing in the way of what's to come!
Fixed
- Jagged edges with
LINESrender method of kitty and iterm2 render styles (4d27055).
Added
UrwidImageScreen.clear_images()(08f4e4d, 8b895ce).term_image.utils.get_cell_size()to the public API (#87).- Support for terminal size-relative frame sizes (#89).
- Manual sizing (#89).
- Allows setting both width and height explicitly via:
BaseImage.set_size()BaseImage.size
- Allows setting both width and height explicitly via:
- Support for terminal size-relative padding (#91).
ANIMrender method to theiterm2render style (#92).term_image.exceptions.RenderError(#94).
Changed
KeyboardInterruptis no longer raised whenSIGINTis used to end an animation (fa47742).UrwidImageScreen.clear()now clears images also (ed3baa3).- Improved terminal cell size computation (#87).
- (BREAKING!)
InvalidSizeErrorno longer inherits fromValueError(26ea969). - (BREAKING!)
UrwidImagenow raisesUrwidImageErrorinstead ofValueErrorwhen rendered as a fixed widget (a612b59). - (BREAKING!) Setting image size with
Size.FIT_TO_WIDTHno longer influences size validation (#89). - (BREAKING!) Redefined
BaseImage.set_size()(#89).- Now allows specifying both width and height but only as integers.
- No longer raises
ValueError. - Now raises
TypeErrorwhen both width and height are notNonebut not both are integers.
- No longer raises
- Redefined the maxsize parameter as frame_size.
- No longer accepts
None. - Now accepts non-positive integer tuple elements.
- No longer accepts
- No longer raises
ValueError: Available size too small. - No longer checks if the resulting size fits into a given frame size when width or height is also given as an integer.
- No longer raises
InvalidSizeError.
- No longer raises
- Now allows specifying both width and height but only as integers.
- (BREAKING!) Redefined pad_width and pad_height formatting parameters (#91).
- No longer accept
None. - Now accept non-positive integers.
- Changed default values to
0and-2respectively.
- No longer accept
- (BREAKING!) Changed
NtoAin the method field of theiterm2style-speific render format specification (#92). - (BREAKING!)
term_image.exceptions.StyleErroris now raised instead of style-specific exceptions (#93). - (BREAKING!)
term_image.exceptions.RenderErroris now raised for errors that occur during rendering (#94). - (BREAKING!)
BaseImage.forced_supportcan no longer be set via instances (#95). - (BREAKING!)
ITerm2Image.native_anim_max_bytescan no longer be set or deleted via instances (#95).
Removed
UrwidImage.clear_all()(08f4e4d) andUrwidImage.clear()(8b895ce).- Replaced by
UrwidImageScreen.clear_images().
- Replaced by
- Image scaling (#88).
- scale parameter of
BaseImage,BaseImage.from_file(),BaseImage.from_url(), etc. scale,scale_xandscale_yproperties ofBaseImage.- Replaced by manual sizing (#89).
- scale parameter of
- Image sizing allowance (#89).
- native and stall_native
iterm2style-specific render parameters (#92).- Replaced by the
ANIMrender method.
- Replaced by the
- Style-specific exceptions (#93).
GraphicsImageErrorTextImageErrorBlockImageErrorITerm2ImageErrorKittyImageError
- Render style name property and custom render style class string representation (7d673dd).
<Style>Image.stylestr(<Style>Image)
term_image.image.ImageMetafrom the public API (9168d17).