MCPcopy Index your code
hub / github.com/eddieantonio/imgcat

github.com/eddieantonio/imgcat @v2.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.6.0 ↗ · + Follow
70 symbols 143 edges 11 files 33 documented · 47% 1 cross-repo links updated 8mo agov2.6.0 · 2023-12-18★ 9195 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

imgcat

Build Status

It's like cat but for images.

running <code>imgcat cat.jpg</code>

Install

On macOS:

brew install eddieantonio/eddieantonio/imgcat

Important: See below if you're using iTerm2 3.0 with shell integration installed.

For other platforms, see Build.

Usage

imgcat some_image.jpg

See the manpage for more invocations.

Note on iTerm2's shell integration

If you install iTerm2's shell integration, chances are you also installed its additional scripts, including one called imgcat. iTerm's imgcat overrides this program by default. To see if this is happening to you, use which to determine where your shell is finding imgcat:

which imgcat

If it says imgcat: aliased to /Users/yourusername/.iterm2/imgcat, then you must edit your shell startup file and add unalias imgcat after the line that sources iTerm2's script. For example:

test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh
unalias imgcat

Build

Clone

You must use git clone --recurse-submodules to clone this repository with its dependency, CImg:

git clone --recurse-submodules https://github.com/eddieantonio/imgcat.git

Requirements

  • libncurses5-dev
  • GNU make

Recommended dependencies

These dependencies are not necessary, but if pkg-config manages to find a compatible version on the system, imgcat will link to it!

  • libpng (any 1.x version supported by CImg)
  • libjpeg (any version supported by CImg)

Then:

./configure
make

Install

To install to /usr/local:

make install

To change the default prefix, simply provide PREFIX=... to make install:

make install PREFIX=/opt

Acknowledgements

License

Copyright © 2014–2023 Eddie Antonio Santos. Distributed under the terms of the ISC license.

Core symbols most depended-on inside this repo

bad_usage
called by 8
src/imgcat.c
print_base64_char
called by 6
src/print_image.c
rgb_colour_distance
called by 4
src/rgbtree.c
tupleize
called by 3
libexec/gen_img.py
determine_optimum_color_format
called by 2
src/imgcat.c
usage
called by 2
src/imgcat.c
fatal_error
called by 2
src/imgcat.c
main
called by 2
libexec/gen_img.py

Shape

Function 48
Class 12
Method 7
Enum 3

Languages

C56%
Python31%
C++13%

Modules by API surface

libexec/gen_table.py19 symbols
src/imgcat.c16 symbols
src/print_image.c15 symbols
src/rgbtree.c8 symbols
src/load_image.cc5 symbols
src/rgbtree.h2 symbols
src/load_image.h2 symbols
libexec/gen_img.py2 symbols
libexec/color_db.py1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add imgcat \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page