Herbert Voss wrote:
> 
> R. Lahaye wrote:
> 
> attached the gzipped xpm which I converted by hand with
> gracebat and convert. importing into lyx as xpm.gz no
> problem. if it's a problem again for you then it must be
> the libXPM.

Your xpm graphics looks beautiful here on the LyX canvas.
Once again a step further !

My xpm package version 3.4k comes with cxpm (check xpm) and
sxpm (show xpm). The xpm file generated via the gracebat script
plus convert, cannot be displayed by sxpm (though cxpm has no
further complaints of this file):

  $ sxpm mygraph.xpm
  Read Xpm Error: Failed to parse or alloc some color.

As far as I understand, it's convert that generates a somewhat
corrupt xpm file.

When I diff your xpm with the one generated on my PC, I get:

--- bad_graphics_Rob.xpm        Fri Jul 12 10:49:30 2002
+++ bad_graphics_Herbert.xpm    Fri Jul 12 01:11:15 2002
@@ -2,7 +2,7 @@
 static char *magick[] = {
 /* columns rows colors chars-per-pixel */
 "792 612 5 1",
-"  c opaque",
+"  c black",
 ". c gray26",
 "X c #818181",
 "o c #c0c0c0",

The opaque in my file causes all the trouble. Do you have a clue?
ImageMagick/convert bug?


> my convert: --------------------------------------------
> Version: @(#)ImageMagick 5.4.2 01/01/02 Q:16 http://www.imagemagick.org
> Copyright: Copyright (C) 2002 ImageMagick Studio LLC

I have
Version: @(#)ImageMagick 5.4.7 07/01/02 Q:16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC

Regards,
Rob.

Attachment: bad_graphics_Rob.xpm.gz
Description: GNU Zip compressed data

Reply via email to