atextor / icat Goto Github PK
View Code? Open in Web Editor NEWicat (Image cat) outputs images in 256-color capable terminals.
icat (Image cat) outputs images in 256-color capable terminals.
Hi!
Can you please tag releases? I want to include this nifty program in the MacPorts tree, and using tags for releases would greatly ease the maintainership :)
Thank you very much!
[icat.c:316] -> [icat.c:311] -> [icat.c:326]: (error) Using pointer to local variable 'tempfile_name' that is out of scope
Just a question. I've never used a 256 color SSH client in Windows...I'm trying to use icat to produce 256 color output in an SSH session to my Ubuntu box, running iCat. I tried running ANSICON and plink, but that doesn't look right either. Any suggestions on the environment on a windows box that would look right?
Thanks
By analogy with cat
icat
should support multiple image file arguments.
cat file1.txt file2.txt > newfile.txt
icat img1.jpg img2.jpg > newfile.ans
Would be cool if you could add an example image and its icat
output to the README.
I had an error at compilation time with MacOS Ventura, Apple Silicon, homebrew with Imlib2 dependency installed.
% make
cc -c -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE -I/opt/homebrew/include/X11 `pkg-config --cflags Imlib2` -o icat.o icat.c
In file included from icat.c:39:
/opt/homebrew/Cellar/imlib2/1.10.0/include/Imlib2.h:45:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
^~~~~~~~~~~~
1 error generated.
make: *** [icat.o] Error 1
I modified the Makefile
this way :
- CFLAGS:=$(CFLAGS) -I/opt/X11/include `pkg-config --cflags Imlib2`
+ CFLAGS:=$(CFLAGS) -I/opt/homebrew/include `pkg-config --cflags Imlib2`
Now the compilation is ok ๐
% make
cc -c -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE -I/opt/homebrew/include `pkg-config --cflags Imlib2` -o icat.o icat.c
cc -o icat icat.o `pkg-config --libs Imlib2`
Hope it helps...
Please, add support for webp
Hi,
The Euclidean metric ( sqrt(a^2+b^2+c^2) ) does not approximate perceived color distance very well. In my version of this project (this seems to be one of these weird wheels everybody keeps reinventing^^) I used the LUV color space, where the Euclidean metric gives somewhat better (though still imperfect) results.
Also, using the ANSI standard palette (colors 0-16) is unwise for image display since users tend to re-define these colors using color themes in their terminal emulators.
Cheers,
jaseg
On a Apple Silicon Mac, the make command failed.
โ icat git:(master) pkg-config --libs Imlib2
-L/opt/homebrew/Cellar/imlib2/1.10.0/lib -lImlib2
So the lmlib2 is installed.
โ icat git:(master) make
cc -c -Wall -pedantic -std=c99 -D_BSD_SOURCE -I/opt/X11/include -o icat.o icat.c
icat.c:39:10: fatal error: 'Imlib2.h' file not found
#include <Imlib2.h>
^~~~~~~~~~
1 error generated.
make: *** [icat.o] Error 1
I just came across icat. I am using Arch Linux. I tried displaying an image with icat, but it always displays in 256 colour, instead of 24 bit.
My terminal already supports 24 bit colour as can be seen from the following test:
I tried searching the internet for enabling 24 bit colour support for icat, but all I could up with is that it is supported by default in icat.
So my question is how do I get the pictures to display in 24 bit colour.
Are there any plans for making deb/rpm packages?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.