How to resize image in Quarto revealjs presentation #5701
-
I have been trying to resize an image I have placed inside a Quarto presentation and the standard method of doing so seems to have no effect on image size. Am I doing something wrong? Is there another approach? For example, in the following presentation, the
I have tried different units for the width (%, px, in) and with and without quotes, nothing seems to have any effect. The only thing that seems to work is putting the image inside a column. Even if that column is of width 100%, then resizing of the image works. For example, the following works fine, the image covers 50% of the screen width:
But this seems like a strange solution. Is there a better way? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
By default, figures are stretched, meaning the width/height are set by this feature. See two ways to make it work.
EDIT: see https://quarto.org/docs/presentations/revealjs/advanced.html#stretch. |
Beta Was this translation helpful? Give feedback.
-
Thanks. The cited text would be a bit clearer if it said:
Also, for things like |
Beta Was this translation helpful? Give feedback.
-
I am just suggesting that the text itself of the last part of the stretch section could be improved to enhance clarity. But I get it. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
By default, figures are stretched, meaning the width/height are set by this feature.
See two ways to make it work.
EDIT: see https://quarto.org/docs/presentations/revealjs/advanced.html#stretch.