Page 1 of 1

import not capturing overlays.

Posted: 2007-06-26T15:50:12-07:00
by ianw
I don't know if this is an enhancement request or a bug report, so I'm doing an enhancement request for now!

Autodesk suggested to reduce some stability problems we had in Maya that we turn on support in X for Color Index Overlay planes (in the NVIDIA driver, this is activated with the option CIOverlay in the xorg.conf). Unfortunately it looks like import does not support capturing overlays, as any overlay section of a window is drawn with all-black pixels, while non-overlay sections are captured correctly. (x11vnc has the same problem unless the -8to24 option is used) Gnome's built-in screenshot application captures these correctly, but it doesn't support capturing regions of the screen like import does, only windows. Gimp also works, but it's cumbersome to bring up a full editing app when all you want is to save a quick snapshot of a region of the screen. Even olde 'xv' captures these regions correctly, with help from some patches on its site. Is there any plan to add overlay capture support to Imagemagick?

Re: import not capturing overlays.

Posted: 2007-06-26T16:57:29-07:00
by magick
Try
  • import -screen myscreen.png

Re: import not capturing overlays.

Posted: 2007-06-27T12:23:15-07:00
by ianw
Unfortunately, same result. import -screen captures the entire screen (we just want to capture the portion we draw with import's cursor), and it's also capturing without the overlays.

Re: import not capturing overlays.

Posted: 2007-06-27T13:11:35-07:00
by magick
Did you try -frame?

Re: import not capturing overlays.

Posted: 2007-06-27T16:38:17-07:00
by ianw
Unfortunately, the same result: an image that looks like a screen capture of where I selected except for the overlay sections, which are captured as black pixels. I also tried options like, say, -depth, though I suspect that's related more to the post-capture images as they're writte.

Re: import not capturing overlays.

Posted: 2007-06-27T20:00:06-07:00
by anthony
The overlay sections may not be on the actual display frame buffer. which is why IM failes to capture them. they may be specially handled by your computers video chip, whcih would need specialized code to extract.

For example few screen captures I've seen captures cursours, whcih im most cases is a good thing. You also can rarely capture direct video windows.

An exception to this I have seen is capturing the output of a virtual machine that is running the application. The virtual simplified the video handling and sanatizes the display to a form that can be captured. I have used this technique to grab images from some 3D games.