Alberto González Téllez wrote: > > I have an issue generating HTML from > Docbook 4. Image scaling based on HTML > tags looses image quality, in contrats > to PDF image scaling. I have a Java class > that performs image scaling using JPEG > functionality in Java2D, I would like > to custumize stylesheets to detect > HTML scaling attributes and replace them > by a automatically scaled image, but I > have a lack of time. Have you considered > to include this improvent in XXE Docbook 4 > configuration?
I'm sorry but the answer is no. The reason is that we merely use the DocBook XSL stylesheets in our products and we do not attempt to improve them. I thought that it was the Web browser (i.e. Firefox) which scaled the images referenced in the HTML generated by the DocBook XSL stylesheets. To my knowledge, the DocBook XSL stylesheets do not attempt to scale these images. Am I wrong is saying that? If I'm right then you mean that Web browsers do a poor job in scaling the images as specified by the width and height attributes of the img element. Because of this poor job, you would like to replace <img src="photo.jpeg" width="200" height="400"/> by a prescaled image: <img src="photo_prescaled_to_200x400.jpeg"/> If, in the future, you want to do that, then I suggest to contribute your enhancements directly to the DocBook XSL stylesheets dev team (http://sourceforge.net/projects/docbook/). By doing this, you ensure that we'll integrate your enhancement into XXE. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

