Notes on imgcat command
Introduction
imgcat is command line tool for output picture to Terminal.
Basic commands
imgcat a local file
$ imgcat some_image.jpg
Using Standard Input (stdin)
You can pipe image data to imgcat by using standard input redirection (<). For example, if you have an image file image.png and you want to pipe its contents to imgcat, you can do this:
cat image.png | imgcat
Using Image Conversion Tools
Sometimes, you might use tools like convert (from ImageMagick) to convert or generate images and then pipe the result to imgcat. For instance:
convert -size 100x100 gradient:red-blue -depth 8 PNG:- | imgcat
Remote Images
You can also pipe images from URLs or remote sources to imgcat using tools like curl or wget. For example:
curl -sS https://example.com/image.png | imgcat
Supported format
It supports common image formats such as PNG, JPEG, GIF, and others that are supported by your terminal emulator.
Reference
- https://github.com/eddieantonio/imgcat/tree/master
- https://chatgpt.com/