Page 1 of 1

.xwd image converting to black

Posted: 2009-04-28T08:16:38-07:00
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


Re: .xwd image converting to black

Posted: 2009-04-28T10:05:24-07:00
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.

Re: .xwd image converting to black

Posted: 2009-04-28T10:32:59-07:00
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

Re: .xwd image converting to black

Posted: 2009-04-28T10:41:59-07:00
by magick
We can reproduce the problem you posted and will have a patch within a day or two. Thanks.