Comments (8)
Heh alright, I actually thought of this as something that could be useful but disregarded it as I couldn't think of an actual use.
For now you can use something like maim /tmp/blah.png;cat /tmp/blah.png, but I'll look into implementing it.
from maim.
My initial findings are that imlib2 provides no support for saving formatted image data directly to stdout.
It's hardcoded to save to a file so badly that in order to redirect file saving to stdout I would have to reprogram each individual filetype module's save function. (There's 14 of them)
Each module specifically saves to a file stream that's created and destroyed within the module's save function itself.
The easiest way to provide full support for this would be to save the screenshot normally and then print its contents to stdout. Which can already be done with maim /tmp/blah.png;cat /tmp/blah.png
Alternatively I could provide gimped support by only supporting raw image data being put into stdout.
But for the time being I'm going to try to fix the problem upstream, I'll make a patch and see if they'll accept it.
from maim.
Any update on the progress for this? It'd be very helpful to be able to, for example, pipe the image directly into a cli pastebin utility.
π for supporting this (upstream support would, of course, be ideal).
from maim.
I contacted a Imlib2 developer, he said Imlib2 is dead.
I don't want to include a whole new custom imlib2 (imlib3? lmao) in maim just for this feature, however I'm going to look into alternatives to imlib2, supposedly the Enlightenment team is working on a "bigger and better" version.
from maim.
D: Oh well thenβ¦
from maim.
With b9c44d8, you can now do
maim -f png /dev/stdout
Depending on your system, it should provide the desired effect. Close the issue if you think that's adequate.
from maim.
Ooh, very nice. Thanks!
from maim.
π
from maim.
Related Issues (20)
- maim screenshots copied to the clipboard won't paste in certain cases. HOT 2
- maim doesnt pipe output to clipboard using xclip inside WM config; does outside HOT 2
- Scrolling screenshot HOT 5
- Image corruption HOT 6
- Add support for `-` filename syntax HOT 1
- maim builds without libICE and libSM HOT 8
- Parser of maim for image names work incorrectly HOT 3
- New Fedora package maintainer HOT 4
- Screen freezes for a bit whenever i use maim HOT 3
- No screenshots when invoked via custom keyboard shortcut on Gnome HOT 4
- How to copy screenshot to selection and also download the screenshot in one command? HOT 2
- Save and copy to clipboard
- Support for high refresh rate monitors HOT 1
- `maim -s` prints help, requires filename HOT 2
- maim does not capture video image - rpi4
- Adjust the selection area before taking a screenshot HOT 2
- Improving accuracy: magnifier, crosshairs, pixel values, resizable selection HOT 1
- Can't screenshot selection when focused on dropdown menu (Couldn't grab the mouse after 10 tries.)
- glitches HOT 2
- maim doesn't work while dmenu is already active HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maim.