[reportlab-users] Image flowable and relative widths

Andy Robinson andy at reportlab.com
Wed May 27 03:22:53 EDT 2009

2009/5/27 Roberto Alsina <ralsina at netmanagers.com.ar>:

> Is there a way to make the Image flowable work as HTML's img tag with relative

> widths?


> Just like in HTML an IMG tag with a 80% width will take 80% of its container.


> I looked at the sources, but it seems a 80 width with a 'percentage' kind

> actually works like HTML's scale (that is, show it at 80% of the image's

> width).


> Could another 'kind' be added? It would imply calculating drawWidth and

> drawHeight at wrap() time, though.

This makes a lot of sense; we could have used this on something
yesterday! I have logged it in the tracker and hopefully we'll get it
done in the next few days.

- Andy

More information about the reportlab-users mailing list