OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: image size problem in HTML generated via XSLTPROC


Nancy Brandt <nancy_brndt <at> yahoo.com> writes:

> 
> 
> Hi guys,Is there any news regarding the image size handling when compiling
HTML with XSLTPROC? When I compile a PDF using FOP - the images are ok, but when
I compile HTML - they are huge and overflow the page. Please, advise. My image
sizes are ~ 900:700 px
> 
> 
> 

You probably need two different imageobjects in your mediaobject: one for
HTML and one for FO. See the "Graphics" chapter in Bob Stayton's book for
details.

I think the problem is that the browser does not know or care what the actual
size (in inches or cm or whatever) of the image is. If you scan a 2in x 2in
passport photo at 300 dpi, the resulting image is 600 x 600. If your current
screen resolution is 800 x 600, then this little photo would take up the entire
height of your screen, and the browser would not be able to display it all
at once.

Theoretically, you could make sure that all your images have a resolution
of 90 dpi, which xsltproc assumes, apparently. If you did that, your images
would be appropriately sized for screen and print, but the print quality
would be low.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]