Cropped images in DocBook and scalefit="1"
2005-05-02 21:26:48 GMT
With the DocBook configuration shipped with the XMLmind XML Editor (XXE), images (referenced from within imagedata elements) that are wider than the width of the document view are clipped on the right and the left. It seems that the red selection rectangle indicates the boundary of the viewport (as described in "DocBook: The Definitive Guide" and in the "Support of images in DocBook" document shipped with XXE). Without any view-adjusting attributes, it further seems that the width of the viewport (that is, the width of the selector when an imagedata element is selected) is equal to the width of the document view. As such, I thought that I could simply set the scalefit attribute to "1" to cause the image to be scaled (down) to fit within this "default" viewport. However, setting this attribute (by itself, in a case such as this) does nothing - the image is still clipped. What am I missing here? Also, while I'm asking, what are the defaults for the various view-generating properties that XXE imposes? "DocBook: The Definitive Guide" says, at several points, that "an implementation is free to choose defaults"; I'm simply curious what defaults XXE chooses for the various properties (depth, width, one when only the other is defined, etc.). Take care, John L. Clark
-- XMLmind XML Editor Support List xmleditor-support <at> xmlmind.com(Continue reading)