Skip to content

Releases: endernoke/ink-picture

v1.3.5

11 Mar 14:21
bccf250

Choose a tag to compare

Maintenance Release

We now have 0 vulnerabilities 🥳

What's Changed

  • chore(deps-dev): bump the dependencies group across 1 directory with 5 updates by @dependabot[bot] in #20

Full Changelog: v1.3.4...v1.3.5

v1.3.4

25 Feb 16:15
760c246

Choose a tag to compare

New Features / Fixes

Image component can now render partially-loaded images.

<Image
  src="foo.jpg"
  alt="alt text"
  protocol="kitty" // optionally explicitly specify an image protocol to use
  allowPartial=true // optionally allow partially-loaded images
/>

This behavior is disabled by default.

What's Changed

New Contributors

Full Changelog: v1.3.3...v1.3.4

v1.3.3

20 Oct 02:54

Choose a tag to compare

What's Changed

  • hotfix: use ink's stdin and stdout for esc sequence query, add tests by @supreme-gg-gg in #14

Full Changelog: v1.3.2...v1.3.3

v1.3.2

18 Oct 02:27

Choose a tag to compare

Bug Fixes

  • Fixed image scaling on iTerm2 / retina displays
  • Fixed stdout raw mode reset when querying for terminal capabilities
  • Default for protocol prop in Image is now "auto", this should be fully backwards compatible
  • TypeScript API improvements:
    • protocol prop in Image is now a literal of supported protocols instead of a string for better DX
    • Now exports a type for protocol names
  • Children of TerminalInfoProvider won't be rendered until info detection is complete, this is to provide better DX while debugging
  • Added Warp to the list of terminals that support iTerm2 (we're an agentic image rendering library now btw 😂 )
  • Added a heuristic for determining the best image protocol for different terminal emulators when protocol isn't specified, to work around various quirks in their implementations for image rendering

What's Changed

  • Improve API types and docs, technical debt payment by @endernoke in #9
  • Improve typescript API and image protocol selection logic by @endernoke in #13
  • Fix raw mode reset and iTerm2 image scaling by @supreme-gg-gg in #12

New Contributors

Full Changelog: v1.3.1...v1.3.2

v1.3.1

16 Sep 10:35
9c325d9

Choose a tag to compare

What's Changed

Full Changelog: v1.3.0...v1.3.1

v1.3.0

14 Sep 10:57
b8cbc1a

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.3.0

v1.2.0

11 Sep 23:09

Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.2.0

v1.1.1

10 Sep 10:05

Choose a tag to compare

1.1.1

This is a patch release. No new features are introduced.

What's Changed

  • Fixed sixel image flickering and disappearing on first render by adding a slight delay before writing the image to terminal

Full Changelog: v1.1.0...v1.1.1

v1.1.0

07 Sep 11:19

Choose a tag to compare

Release 1.1.0

This release replaces the dependency on ascii-art with a custom renderer for generating ASCII images. This way the package no longer depends on canvas, which may have non-straightforward installation steps.

No functionality should be affected in this release.

Full Changelog: v1.0.0...v1.1.0

v1.0.0

07 Sep 08:59

Choose a tag to compare

Release 1.0.0 (First Release 🎉)

This is the first release for ink-picture. It is now live on npm:

npm install ink-picture

I originally created a utility for displaying images in Ink while working on instagram-cli. We didn't have any real option but to code it up from scratch, as the ink-image library is too simplistic and isn't maintained for years.

We realized that rendering images properly anywhere in the terminal, with automatic resizing and smart detection of terminal display capabilities was a more complex task than imagined. (And adding Sixel support is a literal mess.) So we've decided to refactor this small library we've made in-house into a separate public package. I hope the community will find this useful.

Contributions are much appreciated! Feel free to open issues and PRs for bugs and/or feature requests.