RE: [docbook] Scale Image to fit in width or leave unscaled

2016-10-17 Thread Greg Cale
Hi Paul Sorry, the second case should have a contentdepth attribute instead of contentwidth. (These both specify a container size into which the image fits) I’m not sure that I understand your second question. For my purposes, I can see in the pdf output that it doesn’t fit. Are you trying to

RE: [docbook] Scale Image to fit in width or leave unscaled

2016-10-17 Thread Greg Cale
This is one I have been battling (as a self-taught to novice Docbook user), for some time. I was trying to find a common solution for block and inline images. What worked in Docbook 4 did not necessarily work after upgrading to Docbook 5. Two mins after documenting my solution for my team, your

Re: [docbook] Scale Image to fit in width or leave unscaled

2016-10-17 Thread Paul Baumer
Hi Greg, thanks! I don't see a difference between the attributes of two cases though. A typo? Secondly how can I know if an image is too wide to fit on the selected page? Paul On Mon, Oct 17, 2016 at 4:38 PM, Greg Cale wrote: > This is one I have been battling (as a

[docbook] Scale Image to fit in width or leave unscaled

2016-10-17 Thread Paul Baumer
Hello, I would like to achieve the following image resizing as a general rule in my docbook5. I generate the docbook myself using python. And finally I generate pdf from the docbook. if image width will not fit the page it shall be resized to fit in width else image size shall be left