Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
textual-imageview
Readme
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.