mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.19k stars 29 forks source link

feat: allow scaling images #288

Closed mfontanini closed 2 months ago

mfontanini commented 2 months ago

This adds support for scaling images. Images can, for now, only be scaled to a percentage of the screen width wise. To do this, use the notation ![image:width:50%](image-path) (shorthands are also image:width:50 or image:w:50). The reason for having a prefix is I've seen some people wanting to be able to pull presentations made with other tools so I don't want to make any assumptions about what those presentations have inside image tags.

@mikavilpas could you give this a shot and lmk your thoughts? I still need to add some stuff and polish this but it's functional already.

Fixes #260

mfontanini commented 2 months ago

Merging this. @mikavilpas please let me know if something looks off.