! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Better way for window screenshot
Status:
RESOLVED: MOVED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description Nikita Zlobin 2020-05-06 08:54:06 CEST
Created attachment 9837 
gcolor3 xwd & gimp snapshot

I was impressed, how pantheon's screenshot-tool takes isolated rgba images from gtk3 apps, including transparent shadows, created by gtk stylesheet. It did same in xfce as well, not just pantheon (so, it probably doesn't use special wm support). In contrast, xfce4-screenshooter seem to just make desktop region, automatically set to window geometry.

Yesterday I noticed and tried xwd. Images from this tool are transparent only if shoted window is unobstructed. In case of gtk3 app with csd - obstructing shadow part is enough, in this case image gets black background, yet ubstructed region is not recorded (also black) - visible if you obstruct part of window itself. I'm not sure, was it case for pantheon screenshot tool, and thus is there better way to make such window screenshots. So for now I consider window dumps for proposal.

P.S. When I searched how to convert xwd to popular format, it was strange to know, that imagemagick doesn't preserve alpha (even as "import -window ID"), as much as some online image convertion services (though gimp does).
Comment 1 Git Bot editbugs 2020-05-24 23:59:25 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-screenshooter/-/issues/25.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16806

Reported by:
Nikita Zlobin
Reported on: 2020-05-06
Last modified on: 2020-05-24

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Version:
unspecified

Attachments

gcolor3 xwd & gimp snapshot (38.69 KB, image/png)
2020-05-06 08:54 CEST , Nikita Zlobin
no flags

Additional information