Intrepid alpha6: ImageMagick's import command takes bad screenshot when running Compiz.

Bug #273976 reported by moma on 2008-09-24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
imagemagick (Ubuntu)

Bug Description


I use the ImageMagick 's import command to snap screenshots of my desktop.
When I run Compiz-desktop the import tool fails to grab windows' frames (titlebar) properly.

An example:
$ import -window root image1.jpg
$ import -window root -frame image1.jpg

The result is this:

GNOME's gnome-screenshot utility does it right because (AFAIK) it captures the title-bars separately from the window manager. The title bar can also be non-rectangular (shaped with rounded corners).

Could you retest?

Changed in imagemagick (Ubuntu):
status: New → Incomplete
moma (osmoma) wrote :

It still fails in Ubuntu 9.10 (Karmic), with Compiz.

Title bars are not included if you "import" screenshot when running Compiz with "Desktop Cube" and "Rotate Desktop" plugins activated.

I rotate and hold the desktop calm before screenshot.
$ sleep 5; import -window root image0.jpg
$ display image0.png
See picture:

Screenshots are OK If "Desktop Cube" and "Rotate Desktop" plugins are off. Not activated.
Compiz i active. The Ubuntu's default "Desktop Wall" plugin is active.

Screenshots are now OK.

$ import -window root image1.jpg
$ display image1.png

$ import -window root -frame image2.jpg
$ display image2.png

Get window id for an arbitrary application.
$ xwininfo
xwininfo: Window id: 0x5400004

Then take screenshots of it. Wobble/move the window before shooting.
$ sleep 5; import -window 0x5400004 image3.png
$ display image3.png

Ok seems a compiz bug could you link to compiz ?

Changed in imagemagick (Ubuntu):
status: Incomplete → In Progress

Bug in compiz

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. Compiz, in particular, is in heavy development and this bug may have been fixed in the development version of Ubuntu (12.04) if not on your current version. If you are able, it would be of great help if you could confirm if the bug still exists by testing a livecd (available at When you test it and it is still an issue, kindly upload the updated logs by running apport-collect <bug #> and any other logs that are relevant for this particular issue. If you are unable to test the development version, please let us know if you are able to reproduce this issue on Ubuntu 11.10.

Thank you for your help and patience.

Changed in compiz (Ubuntu):
status: New → Incomplete
affects: imagemagick (Ubuntu) → compiz-core
Changed in compiz-core:
status: In Progress → Incomplete
Jeremy Bicha (jbicha) wrote :

This is a missing capability in imagemagick, not compiz.

affects: compiz (Ubuntu) → imagemagick (Ubuntu)
Changed in imagemagick (Ubuntu):
importance: Undecided → Wishlist
status: Incomplete → Confirmed
affects: compiz-core → imagemagick
Changed in imagemagick:
status: Incomplete → Confirmed

Please say why it is a a bug in imagemagick ?

The code have not changed since the 80's so it is likely a bug in compiz or in x driver

Changed in imagemagick (Ubuntu):
status: Confirmed → Incomplete
Changed in imagemagick:
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for imagemagick (Ubuntu) because there has been no activity for 60 days.]

Changed in imagemagick (Ubuntu):
status: Incomplete → Expired
Peter Valdemar Mørch (pmorch) wrote :

I've also had this very same problem.

software recommendation - What screenshot tools are available? - Ask Ubuntu

mentions scrot, an alternative.

My problem under Ubuntu Unity is that the titles of windows are wrong on the screenshots of ImageMagick's import and xwd. Screenshots created by gnome-screenshot, shutter and scrot are fine.

Perhaps the original poster and I don't understand the details of how all these screenshot tools differ. But please believe that from this users perspective, import (and xwd) do not create an accurate likeness of the user desktop.

Here is my screenshot made with import:

The bottom left window is actually minimized too! Note how it has no window decoration. This screenshot isn't actually bad, but note how the window title of the top gnome-terminal is burried behind the firefox window, but the teriminal contents are above firefox? My actual screen does not look like that.

More or less the same screenshot made with scrot:
It faithfully shows what I see on the screen.

sysaxed (sysaxed) wrote :

Peter Valdemar Mørch (pmorch), you posted two identical screenshots describing two different tools.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers