[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re[2]: [docbook-apps] XEP and .PNG images created with Gnome's DIA
Hello Alan, This PNG is broken so the bug is in DIA. Some graphic formats supports internal information about image resolution and some does not. PNG can have such information and, if present, this information should be contained in pHYs chunk of the image data. DIA does writes this data chunk into PNG, but fails to specify proper resolution for an image (vertical resolution is set to 0). So the processing of such image depends on the particular application fall-back strategy. Some application may decide to treat such image as having no information about the resolution at all, other will rise the error. I bet you are using very old version of XEP (that followed first strategy), because modern version of XEP will reject such image with appropriate error message. Note that actual size of the image without intrinsic resolution will be determined individually by each application depending on default resolution it uses. XEP default is 120 DPI (you can read more about it in the Section "5.1. Bitmap Graphics" of "XEP Reference"). Conclusion: fix DIA or use some tool to postprocess those PNGs (after I've re-saved your 'account.png' using XnView it worked fine with XEP). If you have image without intrinsic resolution - specify image dimensions explicitly in your document. Best regards, Alexander Peshkov mailto:peshkov@renderx.com RenderX AE> I tried that, and then I had the problem where it was too small in the HTML AE> version but just right in the PDF version, or else it was too big in the PDF AE> and just right in the HTML version. AE> There is definitely a bug in either XEP or DIA, or the combination of using AE> them together (because XEP has no problems with .png files created with AE> umbrello, and FOP has no problems with .png files created by dia). AE> On 7/16/05, Jirka Kosek <jirka@kosek.cz> wrote: >> >> Alan Ezust wrote: >> >> > But one area where XEP does not work the same way as FOP is when >> including >> > PNG images. >> >> It is not working the same way, but correct way ;-) >> >> > I have a bunch of .PNG images which were created with gnome dia, and >> they >> > appear twice as big in XEP-generated PDFs as they do in the >> FOP-generated >> > PDF (or on my screen). Do you have any idea why that might be? >> >> You can either set correct dimensions (or resolution) inside your >> graphics file using graphic editor like Gimp, or specify scaling using >> scale attribute on imagedate element. >> >> -- >> ------------------------------------------------------------------ >> Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz >> ------------------------------------------------------------------ >> Profesionální školení a poradenství v oblasti technologií XML. >> Podívejte se na náš nově spuštěný web http://DocBook.cz >> Podrobný přehled školení http://xmlguru.cz/skoleni/ >> ------------------------------------------------------------------ >> >> >> >>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]