.xwd image converting to black

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ankh

.xwd image converting to black

Post by ankh »

Hi all,

I have an xwd image created from an Xvfb session :

Code: Select all

xinit -- /usr/bin/Xvfb :2 -screen 0 1024x768x16 -fbdir /home/eframe/
If I start the Xvfb session with an 8 bit depth, IM's 'convert' tool has no problem turning this into a jpg. However, if I use 16/24 bit depth, I just get a black image created with the 'convert' tool.

I can view the 16/24 bit depth xwd files in the gimp, so I know they are 'good'

Am I missing something?

Cheers,

Rich

Code: Select all

ted eframe # convert --version
Version: ImageMagick 6.4.8 2009-04-28 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

ted eframe # gcc --version
gcc (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ted eframe # uname -a
Linux ted 2.6.29-gentoo-r1 #1 SMP Sun Apr 19 18:05:15 BST 2009 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GenuineIntel GNU/Linux

User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: .xwd image converting to black

Post by magick »

We need a complete set of instructions to reproduce the problem or a URL to an XWD image we can download to investigate further.
ankh

Re: .xwd image converting to black

Post by ankh »

Sample image:

http://greenhill.mine.nu/foo.xwd.bz2

and I simply used:

$ convert foo.xwd foo.jpg

to convert to a jpg

Cheers,

Rich
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: .xwd image converting to black

Post by magick »

We can reproduce the problem you posted and will have a patch within a day or two. Thanks.
Post Reply