Comments (1)
This is a feature, not a bug. 🙃
imgcat
, in its original form is supposed to print chunky, poor-resolution images with low colour depth to your terminal, for aesthetic reasons.
A few terminal emulators, like iTerm2, support direct display of images. So one solution to this is to install iTerm2, and use imgcat
. imgcat
should automatically detect it's running in iTerm2 and print the image to screen in its full resolution glory. You can still print chunky images with command line options, though!
An alternative to this is using the -H
or --half-height
option, which cleverly uses Unicode half-height block characters to double the vertical resolution of your screen. This might make images a little clearer, but it does not work well for diagrams, or images with text.
Consider displaying an XKCD comic.
With macOS Terminal, normally:
With macOS Terminal, using the --half-height
option:
With iTerm2, using its direct image output:
Note: if you switch to iTerm2, it also bundles a script called imgcat
. Follow the notes in the brew info imgcat
in order to install this version of imgcat
correctly.
I'm marking this as wontfix
, but if you have any questions, feel free to reply! 😄
from imgcat.
Related Issues (20)
- trying to compile on manjoro HOT 2
- Any plans to support 24-bit color? HOT 1
- Does it support Windows? HOT 2
- Create a Windows package HOT 1
- Cannot open jpg files in macOS 10.15 + iTerm2 + Zsh HOT 4
- Not working with screen HOT 1
- doesn't work with tmux on MacOS HOT 6
- [Feature] imgcat `url` HOT 4
- Can't display svg images on my Mac HOT 1
- CImg directory blank after git clone HOT 2
- imgcat not working! HOT 3
- higher resolution images HOT 1
- Failed to open image HOT 5
- Homebrew no formula HOT 2
- Build failure: doesn't detect ncurses HOT 4
- Warning: Calling bottle :unneeded is deprecated! There is no replacement. HOT 1
- A flaw of memory leak HOT 1
- Install: fatal error: term.h: No such file or directory HOT 2
- Error installing with MacOS 14.0 (Sonoma) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgcat.