You are not logged in.

#1 2016-02-07 12:27:37

timfayz
Member
From: Kazan, Russia
Registered: 2016-01-14
Posts: 59
Website

[SOLVED] How to make screenshot by graphicsmagick and open it in app?

Hello all! I'm trying to do the following:

gm import screen.jpg | pinta

So after gm import screen.jpg gm ask me to select the area to take from, then I want to redirect it (saved image) to Pinta. How can I do that?

Last edited by timfayz (2016-02-07 14:24:52)

Offline

#2 2016-02-07 12:49:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] How to make screenshot by graphicsmagick and open it in app?

I don't think you'd want to pipe binary data.  And I don't think it is possible with these two programs: pinta doesn't read image data from it's stdin does it?

Just save the image somewhere first:

gm import screen.jpg && pinta screen.jpg

EDIT: gm can write the screenshot to stdout, I don't know if that's what you want, or (again) if pinta will read from stdin, but if so:

gm import jpg:- | pinta

EDIT2: pinta cannot read a file from stdin or from a process substition block.  You need to save the image as an on-disk file or use a different image editor.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-02-07 14:24:21

timfayz
Member
From: Kazan, Russia
Registered: 2016-01-14
Posts: 59
Website

Re: [SOLVED] How to make screenshot by graphicsmagick and open it in app?

Great, it was quite simple! Thank you! smile

Offline

Board footer

Powered by FluxBB