OpenTUI 0.5.1

npmGitHub release

Added

  • core: PNG images with an embedded ICC profile are now validated and converted to sRGB when their pixels are decoded. PNGs that qualify stay encoded for direct Kitty passthrough, and pixels are decoded only when needed. See NativeImage. (#1327)

Fixed

  • core: PNG images with ASCII space, tab, LF, or CR bytes after the IEND chunk now load. Malformed chunks and other trailing data are still rejected. See NativeImage. (#1326)

API changes#

@opentui/core#

Added

  • property RenderLib.imageMaterialize: (image: ImageHandle) => number
  • property RenderLib.imageReleaseIccCache: () => void
  • property RenderLib.imageRetainIccCache: () => void
  • property RenderLib.imageTestFailIccProfileCopyAllocationOnce: () => void