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

Bug #273976 reported by moma
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ImageMagick
Incomplete
Undecided
Unassigned
imagemagick (Ubuntu)
Expired
Wishlist
Unassigned

Bug Description

Hello,

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
or
$ import -window root -frame image1.jpg

The result is this: http://bildr.no/view/259815
and http://bildr.no/view/259816

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).

Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

Could you retest?

Changed in imagemagick (Ubuntu):
status: New → Incomplete
Revision history for this message
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
BAD.
See picture: http://bildr.no/view/600229
----

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
OK

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

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.

Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

Ok seems a compiz bug could you link to compiz ?

Changed in imagemagick (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

Bug in compiz

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

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 ubuntu.com). 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
Revision history for this message
Jeremy Bícha (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
Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

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
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in imagemagick (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Peter Valdemar Mørch (pmorch) wrote :

I've also had this very same problem.

software recommendation - What screenshot tools are available? - Ask Ubuntu
http://askubuntu.com/questions/6558/what-screenshot-tools-are-available

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:

http://postimage.org/image/3lsymcqzf/

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:
http://postimage.org/image/3lsymcqzf/
It faithfully shows what I see on the screen.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.