GithubHelp home page GithubHelp logo

transparent background? about lsix HOT 4 OPEN

hackerb9 avatar hackerb9 commented on July 19, 2024 1
transparent background?

from lsix.

Comments (4)

hackerb9 avatar hackerb9 commented on July 19, 2024

The sixel format supports 1-bit transparency, but ImageMagick does not know how to do that yet. The best we can do until that bug is fixed is to detect the terminal's background color and use that. It's not a bad solution as it means we also get antialiased fonts and drop shadows. Does your terminal not report the correct background color? Or, are you using an image or transparent background in your terminal?

from lsix.

Astrantia avatar Astrantia commented on July 19, 2024

The sixel format supports 1-bit transparency, but ImageMagick does not know how to do that yet. The best we can do until that bug is fixed is to detect the terminal's background color and use that. It's not a bad solution as it means we also get antialiased fonts and drop shadows. Does your terminal not report the correct background color? Or, are you using an image or transparent background in your terminal?

lsix is correctly detecting my terminal's background color, but i've set my terminal itself to be 70% transparent, so the background color ends up being a solid color. from what i gather from your reply, it is impossible to get a no-color background currently with imagemagick?

from lsix.

hackerb9 avatar hackerb9 commented on July 19, 2024

from what i gather from your reply, it is impossible to get a no-color background currently with imagemagick?

Correct. And I'm not even sure that it would look good if it did work. You would lose antialiasing, so it may look grotty.

lsix is correctly detecting my terminal's background color, but i've set my terminal itself to be 70% transparent, so the background color ends up being a solid color.

That makes sense. Can you please send a screenshot of the problem and let me know which terminal you're using? While there's no fix at the moment, I'd like to keep this bug open as a reminder that sixel transparency needs further work and to try some experiments to see if it is worth pursuing.

If you could also run lsix > opaque.six and attach that file to this bug, I'd appreciate it. I will see if I can make it transparent and how it looks when I do. Thanks!

from lsix.

steven-omaha avatar steven-omaha commented on July 19, 2024

I just ran into the same problem. Here is how it looks for me.

Screenshot:
screen

sixel file: https://gist.githubusercontent.com/steven-omaha/0a5e2f8927be5866d8b666e7efffd661/raw/520a08bac24b57d59418d938c9050c042ee75213/opaque.six

from lsix.

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.