Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is converting XWD to PNG not supported? #7520

Open
wintonzheng opened this issue Jul 30, 2024 · 2 comments
Open

Is converting XWD to PNG not supported? #7520

wintonzheng opened this issue Jul 30, 2024 · 2 comments

Comments

@wintonzheng
Copy link

ImageMagick version

7.1.1-36

Operating system

Linux

Operating system, version and so on

macos, linux, ubuntu - Any version so far

Description

Getting this error:

magick: no decode delegate for this image format `XWD' @ error/constitute.c/ReadImage/746.

Steps to Reproduce

xwd -root -out screenshot.xwd
magick screenshot.xwd screenshot.png

Images

No response

@urban-warrior
Copy link
Member

ImageMagick depends on the X11 delegate library to support images in the XWD format. Type magick --version and see if x is in the list of delegates.

@wintonzheng
Copy link
Author

ImageMagick depends on the X11 delegate library to support images in the XWD format. Type magick --version and see if x is in the list of delegates.

i've been testing it with:

  • the FROM python:3.11 docker image (debian)
  • apt-get install libpq5 xvfb x11-apps
  • running Xvfb :99 -screen 0 ...

not sure why x delegate is not installed.

I found a workaround:
xwd -root | xwdtopnm | pnmtopng > {screenshot.png}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants