Add a Screenshot-API (Plugin)

Bug #781280 reported by Mario Kemper (Romario)
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Unity
Opinion
Wishlist
Unassigned
compiz (Ubuntu)
Opinion
Wishlist
Unassigned
unity (Ubuntu)
Opinion
Wishlist
Unassigned

Bug Description

Binary package hint: compiz

Most other platforms provide neat ways to capture a screenshot while preserving transparency. KWIN added a functionality like that recently: https://svn.reviewboard.kde.org/r/4814/
KWIN is offering the API via DBUS.

In most cases we need hacky and ugly solutions to get similar functionalities when using compiz (try launchpad.net/shutter), e.g. to get transparency when using a shaped window. When adding this to compiz we could render the window to an offscreen buffer and get perfect screenshots (even though I don't know how to do this).

I would imagine to expose the following functionality via DBUS:
screenshot() //takes the whole desktop
screenshotWindowUnderCursor()
screenshotWindowbyXID(xid) //capture a specific window by providing the xid of the window

It would also be a great contribution to all documentation-like projects and the blogosphere. The nicer the screenshots are, the more impressive is what they show. Currently most window-only-screenshots look ugly compared to screenshots of other platforms (like Win7 or Mac OSX).

Please let me know if I can do anything to help out here (e.g. how to write a compiz plugin).

Changed in unity:
status: New → Invalid
affects: unity → null
Revision history for this message
Marnanel Thurman (marnanel) wrote :

Nice idea, but this is definitely a wishlist request.

Wouldn't it be more sensible if we decided on a way to do this which worked across all WMs? EWMH-based, perhaps, or at a common DBus address?

Changed in compiz (Ubuntu):
status: New → Opinion
Revision history for this message
Tobias Wolf (towolf) wrote :

Cross-refs:

My bug #809445 here and I just filed a bug on b.g.o at https://bugzilla.gnome.org/662486

Revision history for this message
Tobias Wolf (towolf) wrote :
Curtis Hovey (sinzui)
no longer affects: null
Omer Akram (om26er)
Changed in unity:
importance: Undecided → Wishlist
Changed in compiz (Ubuntu):
importance: Undecided → Wishlist
Changed in unity (Ubuntu):
importance: Undecided → Wishlist
Changed in unity:
status: New → Opinion
Changed in unity (Ubuntu):
status: New → Opinion
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.