From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bischoff To: Stephen Wilhelm , DocBook Mailing List Subject: Re: Graphics image question Date: Wed, 19 Dec 2001 22:49:00 -0000 Message-id: <01013112191908.00703@s010.strasbourg-251.cybercable.fr> References: X-SW-Source: 2001/msg00019.html Le Samedi 20 Janvier 2001 16:17, Stephen Wilhelm a écrit : > Hello everyone. I have a DocBook document that has some images in it. I > use the Cygnus tools to publish the SGML sources. Now, db2html does a > great job, but db2ps and db2pdf gives some LaTeX errors about gif images > not being supported. I switched to jpeg images, but the resulting > Postscript and PDF files look absolutely horrible (in one case, each pixel > of the image was rendered as a 50 pixel block, which is obviously > unacceptable). > > So, does anyone know if there is anything I can do to get gif's or jpeg's > working? If not, is there another image format that I should consider? > The only thing I would require from another format would be that it must > work with web browsers as well (so no eps files). > > Any suggestions? Yes. In DocBook 4.0, has been introduced to allow you have the same picture (or anything else) in several formats at the same time. So the kind of tricks as proposed by Peter are only necessary for DocBook up to version 3.1 (I also proposed similar things at that time on this list). The complete syntax for is explained on http://www.caldera.de/~eric/crash-course/HTML . From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bischoff To: Stephen Wilhelm , DocBook Mailing List Subject: Re: Graphics image question Date: Wed, 31 Jan 2001 03:10:00 -0000 Message-ID: <01013112191908.00703@s010.strasbourg-251.cybercable.fr> References: X-SW-Source: 2001-q1/msg00019.html Message-ID: <20010131031000.VckP-qrRxSNwy3gM70QLBm28uW_sZi9cvWEHEWRo_Zk@z> Le Samedi 20 Janvier 2001 16:17, Stephen Wilhelm a écrit : > Hello everyone. I have a DocBook document that has some images in it. I > use the Cygnus tools to publish the SGML sources. Now, db2html does a > great job, but db2ps and db2pdf gives some LaTeX errors about gif images > not being supported. I switched to jpeg images, but the resulting > Postscript and PDF files look absolutely horrible (in one case, each pixel > of the image was rendered as a 50 pixel block, which is obviously > unacceptable). > > So, does anyone know if there is anything I can do to get gif's or jpeg's > working? If not, is there another image format that I should consider? > The only thing I would require from another format would be that it must > work with web browsers as well (so no eps files). > > Any suggestions? Yes. In DocBook 4.0, has been introduced to allow you have the same picture (or anything else) in several formats at the same time. So the kind of tricks as proposed by Peter are only necessary for DocBook up to version 3.1 (I also proposed similar things at that time on this list). The complete syntax for is explained on http://www.caldera.de/~eric/crash-course/HTML .