Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image size not being considered when rendering HTML pages #238

Open
rogeriod opened this issue Oct 13, 2022 · 1 comment
Open

Image size not being considered when rendering HTML pages #238

rogeriod opened this issue Oct 13, 2022 · 1 comment

Comments

@rogeriod
Copy link

rogeriod commented Oct 13, 2022

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?

@bbpezeshki
Copy link

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?

The customstyles.css has a bunch of repeated .post-content img classes (sorry if I'm using the wrong words) that force the image back to 100% size. I just commented all of these out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants