
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
textual-imageview
is a both a CLI tool and Textual widget and for viewing images in the
terminal.
Use the vimg
CLI command to quickly view an image in the terminal.
vimg <path_to_image>
Click and drag (or press W/S/A/D) to move around the image, and scroll (or press -/+) to zoom in/out of the image.
vimg
is built on ImageView
, a Rich renderable that renders images with padding/zoom, and ImageViewer
, a Textual widget that adds mouse interactivity to ImageView
. Add textual-imageview
as a dependency to use them in your Textual app!
At the highest zoom level, each character corresponds to two image pixels. I've found that vimg
works best with a GPU-accelerated terminal like Alacritty.
pip install textual-imageview
vimg
works great locally, but colors aren't displaying correctly when using vimg
over SSH. Why?
Rich determines terminal color support by checking if the COLORTERM
environment variable is set to truecolor
or 24bit
.
echo $COLORTERM
If you know your terminal emulator supports truecolor - i.e., vimg
works great locally - try setting the environment variable manually:
export COLORTERM=truecolor
textual-imageview
is distributed under the terms of the MIT license.
FAQs
A simple terminal-based image viewer.
We found that textual-imageview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.