Closed
Description
If I use scaledwidth
on an inline image like this.
image:Png-Logo.png[scaledwidth=2cm]
then the resulting DocBook5 xml lacks the width
attribute:
<imagedata fileref="Png-Logo.png"/>
Longer example:
image::Png-Logo.png[scaledwidth=2cm]
image::Png-Logo.png[width=2cm]
image:Png-Logo.png[scaledwidth=2cm]
image:Png-Logo.png[width=2cm]
yields
<imagedata fileref="Png-Logo.png" width="2cm"/>
<imagedata fileref="Png-Logo.png" contentwidth="2cm"/>
<imagedata fileref="Png-Logo.png"/>
<imagedata fileref="Png-Logo.png" contentwidth="2cm"/>
Asciidoctor 2.0.20 [https://asciidoctor.org]
Runtime Environment (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux-musl]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
Sample project (you need a PNG to actually run it - any one will work): inline-image-scale.zip