[Xastir-Dev] Problems with snapshots?

Jack Twilley jmt at twilley.org
Mon Jun 2 03:20:49 EDT 2003


WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Curt" == Curt Mills <Curt> writes:

Jack> /usr/local/bin/convert: Not a XPM image file
Jack> (/var/tmp/xastir_jmt_snap.xpm).  convert failed to convert
Jack> snapshot from xpm to png

Jack> I'm pretty sure this isn't me. :-) I have both XPM and
Jack> ImageMagick support compiled into my binary.  Any suggestions?
Jack> Curt, could this have been affected by something you've done to
Jack> solve the other graphics problems people have reported?

Curt> That's likely.  I broke it off into a separate thread a while
Curt> back so that it wouldn't stop the main thread while making a
Curt> snapshot.

Curt> Just checked here on this old PP200 machine, and I'm getting the
Curt> same error.  I suspect we might not be finished writing the XPM
Curt> file by the time we call ImageMagick to convert it.

Yes, I suspect that's it.

I'm more than halfway through a rewrite of that code.  Currently, the
Xpm code takes the pixmap and converts it to an .xpm which is written
to disk.  Next, a system() call is made to the ImageMagick convert
program which converts the .xpm to a .png which is also written to
disk.

While diagnosing this problem, I replaced the system() call with
ImageMagick code which performs the conversion.  I got the same
errors, which is good in this case.  I'm now more than halfway through
replacing the Xpm code with more ImageMagick code.  Once that's done,
the process will be much improved.

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+2vraGPFSfAB/ezgRAppCAKCe5ltd/oj3hv6c1Zg5X0EDr/0sYACg22e+
6GlkEsEtoE05Ku3qM9Hfgs0=
=9YEl
-----END PGP SIGNATURE-----



More information about the Xastir-dev mailing list