Hello Philip,
I'm getting a "large inflate error" anytime xcircuit loads a library or drawing that has the logo - either as a .png or .ppm.
> ... >
Finally, when I convert one of these drawings to a PDF using ps2pdf, I get a warning: warning: ignoring zlib error: incorrect data check
Any ideas? Or do I just go on ignoring it? *smiles*
I know about this error; it has been around for a long time. I have been successfully ignoring it. :) Graphic images are stored and retrieved by a 2-step process that includes flate encoding + ASCII 85 encoding on the store, and ASCII 85 decoding and flate decoding on the retrieval. The reason for using this method is that it is the way PostScript natively stores graphics; the flate + ASCII 85 encoded data stream will be correctly displayed by a PostScript previewer. The flate encoding/decoding is done by the "flate.c" routine that I ripped out of the SourceForge project "acroformtool". I have every reason to believe that it is correct. So I suspect my ASCII 85 encoding/ decoding code. In particular, the handling of the last few bytes of the ASCII 85 encoding/decoding scheme are very awkward. But I have tried several times to find the error in my code, but haven't found it yet. I assume that it has to do with the writing of the last few bytes, which is why nothing ever appears to be wrong with the output image; at worst, it would be a single-pixel error. Probably the error can be tracked down by running flate and ASCII 85 encoding/decoding separately on an image and comparing the result to the xcircuit output. The relevant lines of code are at files.c lines 3551 and following; and lines 5413 and following. I would be ever so grateful if anybody could tell me what's wrong with my code there. . . Thanks, Tim +--------------------------------+-------------------------------------+ | R. Timothy Edwards (Tim) | email: t...@opencircuitdesign.com | | Open Circuit Design | web: http://opencircuitdesign.com | | 22815 Timber Creek Lane | phone: (301) 528-5030 | | Clarksburg, MD 20871-4001 | cell: (408) 828-8212 | +--------------------------------+-------------------------------------+ _______________________________________________ Xcircuit-dev mailing list Xcircuit-dev@opencircuitdesign.com http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev