Skip to content

XWD support #4612

@noodlefan

Description

@noodlefan

Hello,

It'd be nice if we had support for the X Window Dump file format in libvips to allow taking screenshots via the xwd(1) utility that comes with the X11 distribution by default.

Example command with xwd(1) and convert(1) from ImageMagick to take a PNG screenshot:
$ xwd -root | convert xwd:- test.png

Possible usage examples and actual outputs:
$ xwd -root | vips stdin test.png
VipsImage: unable to load source
$ xwd -root -out test.xwd && vips copy test.xwd test.png
VipsForeignLoad: "test.xwd" is not a known file format

Counter arguments:

  • Keep around an ImageMagick installation for taking screenshots: duplicates efforts
  • Use a full-featered screenshot-taking utility like scrot: more packages to manage

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions