8000 Inline images don't have a scaledwidth with docbook5 output · Issue #4552 · asciidoctor/asciidoctor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Inline images don't have a scaledwidth with docbook5 output #4552
Closed
@kurthuwig

Description

@kurthuwig

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

Metadata

Metadata

Assignees

Labels

area/docbookIssues related to DocBook output and the DocBook convertercomplianceUsed in the past to track issues with being compliant with AsciiDoc pythonv2.0.21Issues resolved in the 2.0.21 release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0