Openscapes / lab-manual

lab manual / how we work
Creative Commons Attribution 4.0 International
0 stars 0 forks source link

Sizing of PNGs in Rmd to Quarto #2

Closed IleanaF closed 2 years ago

IleanaF commented 2 years ago

Please tell us how to make the hex image smaller

We are trying to make these lines of code Quarto compatible

Original from Faylab manual

knitr::include_graphics("https://allisonhorst.github.io/img/openscapes_hex_badge.png")

So far we have ![](img/openscapes_hex_badge.png){width ="25%"}

or

![](img/openscapes_hex_badge.png){width ="100px"}

Note the image has been placed in the img file as opposed to linked from Git

jules32 commented 2 years ago

This approach seems really good @IleanaF. I like having a copy of the img file inside the lab-manual repository. And sizing it with {width} is great!

jules32 commented 2 years ago

OK following up - I have a solution :)

I built the site locally and I see that your question was about it not displaying correctly:

![](img/openscapes_hex_badge.png){width ="25%"}

image

It looks like spacing matters and we can't have a space between width=. Removing that space will give us the correct sizing!

![](img/openscapes_hex_badge.png){width="25%"}

image
stefaniebutland commented 2 years ago

This issue fixed and closed by https://github.com/Openscapes/lab-manual/pull/11 thanks to @IleanaF