screen capture with import -display

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Baldhead
Posts: 1
Joined: 2012-10-20T09:42:54-07:00
Authentication code: 67789

screen capture with import -display

Post by Baldhead »

Hello Magick-ians,

I've registered on this forum as I'm struggling with a screencapture script:
Weird thing is actually that one of my pc's it is working as expected and on another pc is doesn't
Both pc's are running ubuntu 12.04...

This is the script:
/usr/bin/import -display :0 -win root -resize 800 /home/baldy/temp/capture.png

Result from the script that doesn't work: it returns an almost complete black image, but the titlebar is captured! So we have a the top of the image the name of the application which is currently running, but everything underneath is black.

I really don't have an idea what could be wrong, i hope there are some people on the list who are able to help me out ...

Thanks in advance,
Baldy
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: screen capture with import -display

Post by anthony »

Not everything is in X window frame buffers, or in a form the X window server uses. Some 3D graphics for example, or Video images.

Basically with modern hardware and graphic cards, screen capture can be a real hit-or-miss affair.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply