Page 1 of 1

Possible to extract only import out of ImageMagick package?

Posted: 2011-10-19T02:00:25-07:00
by dontbeshy
There is a POS terminal, which has SUSE 9 and is running POS application.

I want to do a simple job with this terminal;
capture the current screen of POS application and save it as jpeg.

There are over 7000 terminals, so it is not possible to install "ImageMagick" over all of them.
I want to do remote copy only one executable like "import" to all the terminals.

Does anyone have a good idea for this, or can anyone tell me how to make it?

Thanks all!!!

Re: Possible to extract only import out of ImageMagick packa

Posted: 2011-10-20T00:26:17-07:00
by anthony
imagemagick may be too big. import relies on many librarys and other functions, most of which you will not use.

All you really want is a simple X windows command such as "xwd" to 'dump' the display into a file.

That command is a fairly standard X window command, though you may need to install the package (or just copy the command). On my Fedora system it is installs as part of the "xorg-x11-apps" package.

You can then copy that 'X window dump' file to your main machine, and use Imagemagick to convert/crop/resize the image as you like.

NOTE X windows is also a network display program. If you have access to the authority cookie (see "xauth"), or open the display for access from your machine (using "xhost"), you can access the X window display remotely, and use import to get the remote display from your main machine! However using xwd remotely would probably be easier due to the security, your network setup may not allow raw remote Xwindow access across the network (my university doesn't).