ueberzug | command line util which allows to display images | Command Line Interface library

 by   seebye Python Version: 18.1.9 License: GPL-3.0

kandi X-RAY | ueberzug Summary

kandi X-RAY | ueberzug Summary

ueberzug is a Python library typically used in Utilities, Command Line Interface applications. ueberzug has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. You can install using 'pip install ueberzug' or download it from GitHub, PyPI.

ueberzug is a command line util which allows to display images in combination with X11
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ueberzug has a medium active ecosystem.
              It has 819 star(s) with 34 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              ueberzug has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ueberzug is 18.1.9

            kandi-Quality Quality

              ueberzug has 0 bugs and 0 code smells.

            kandi-Security Security

              ueberzug has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ueberzug code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ueberzug is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              ueberzug releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ueberzug and discovered the below as its top functions. This is intended to give you an instant insight into ueberzug implemented functionality, and help decide if they suit your requirements.
            • Setup tmux hooks
            • Send signal to target process
            • Returns True if two PIDs are the same
            • Get the command for a process
            • Returns a list of parent window info
            • Get parent PIDs of a process
            • Find the first pty of a list of pids
            • Append an item to the collection
            • Query windows
            • Draw the image
            • Return the path to a pty slave
            • Scale an image to a given position
            • Process commands from stdin
            • Return the parent PID of a process
            • Context manager for lazy drawing
            • Returns the offset of the current window
            • Send a SIGUSR1 signal to target
            • Get client ids
            • Register a command hook
            • Load an image
            • Start thread count
            • Load an image from path
            • Get the session id
            • Register an error handler
            • Set visibility
            • Crop the given image
            Get all kandi verified functions for this library.

            ueberzug Key Features

            No Key Features are available at this moment for ueberzug.

            ueberzug Examples and Code Snippets

            No Code Snippets are available at this moment for ueberzug.

            Community Discussions

            QUESTION

            Overlay image in terminal using ueberzug within C
            Asked 2021-Dec-03 at 15:11

            With the ueberzug library, it is possible to overlay images in terminal windows under X11. The library is written in python - examples for how to use the library are provided for bash and python.

            To overlay an image in the terminal, one can simply run ueberzug layer and then enter a json formatted string like {"action": "add", "x": 0, "y": 0, "identifier": "test", "path": "/tmp/image.jpg"}. This works flawlessly.

            I am trying to call this process in C. If I understand it correctly, I just have to spawn a new process, and then write to its stdin, which is normally a simple task.

            However, in my case I can see the image flicker up for a fraction of a second before the application terminates. This is my code:

            ...

            ANSWER

            Answered 2021-Dec-03 at 15:11

            To summarize the comments, the following solution based on yours works:

            • By popen you fork a process, create a bidirectional pipe and start the command in the sub-shell
            • Subsequently, one writes to the pipe, issueing commands to ueberzug
            • the pipe however has to be fflushed, otherwise it's transferred only when the process exits
            • the signal handler catches the ueberzug child-process if the sub-shell is killed/quits

            Meanwhile, main may continue running your code. The code below cycles through 3 images.

            Source https://stackoverflow.com/questions/70074820

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ueberzug

            Note: You can improve the performance of image manipulation functions by using pillow-simd instead of pillow.
            Install by using pip: The package is named ueberzug
            Packages of linux distributions: At least one packager applies patches to my code. So if there are issues uninstall it and install it via pip. Actually I think it's not fine that they call it ueberzug after changing the code. As bugs introduced by them look like they are part of my work.

            Support

            The communication is realised via stdin. A command is a request to execute a specific action with the passed arguments. (Therefore a command has to contain a key value pair "action": action_name) Commands are separated with a line break.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/seebye/ueberzug.git

          • CLI

            gh repo clone seebye/ueberzug

          • sshUrl

            git@github.com:seebye/ueberzug.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by seebye

            fmui

            by seebyeShell

            chameleon

            by seebyePython

            XClasses

            by seebyeJava

            weiche

            by seebyeC++

            dotfiles

            by seebyeShell