Skip to content

Image size not being considered when rendering HTML pages #238

Open
@rogeriod

Description

@rogeriod

Whether an image is specified with the inline_image.html or in html, with specific dimensions, or in markdown with no image size, HTML pages always render the image identical (example 1)

{% include inline_image.html file="faro.png" max-width="300" alt="Faro, Portugal" %}

<img src="/images/faro.png" width="200" alt="Faro, Portugal">

![Faro, Portugal](/images/faro.png)

screencapture-127-0-0-1-4000-mydoc-c18-10-html-2022-10-13-09_36_03

When images have the same width but different heights, HTML pages render images with different widths (example 2).

{% include inline_image.html file="C16_136_1.png" alt="Exercício de Leitura e Ditado" %}
{% include inline_image.html file="C16_136_2.png" alt="Exercício de Leitura e Ditado" %}

screencapture-127-0-0-1-4000-mydoc-c16-06-html-2022-10-13-09_58_09

Is there a way to override this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions