Code Monkey home page Code Monkey logo

Comments (1)

eddieantonio avatar eddieantonio commented on August 25, 2024

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:

Screen Shot 2019-06-10 at 12 17 50 PM

With macOS Terminal, using the --half-height option:

Screen Shot 2019-06-10 at 12 21 55 PM

With iTerm2, using its direct image output:

Screen Shot 2019-06-10 at 12 18 48 PM

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.