Use case or problem
We got an extended syntax for (embedded) image resizing—a good first step, but it only allows pixels as units.
Pixels are not a good unit for different screen sizes or even PDF printing, it would be preferable to be able to use relative units like %, em and rem.
Proposed solution
Add the possibility to specify %, em and rem as relative units, instead of just pixels. Maybe like so:
![[image.png|50%x50%]]
![[image.png|50%]]
![[image.png|70em]]
![[image.png|70rem]]
Since many of us are surely using Pandoc for post-processing Obsidian Notes into papers or books, it would even be better to (also?) support the Pandoc link_attributes notation:
{#id .class width=50% height=50%}
Current workaround (optional)
<img src="app://local/home/user/Documents/vault/image.png" style="width: 50%;" />
This format actually sucks, since it breaks the idea of using relative links.
My alternative idea of simply using
<img src="image.png" style="width: 50%;" />
produces an error
GET app://obsidian.md/image.png net::ERR_FILE_NOT_FOUND
Related feature requests (optional)
https://forum.obsidian.md/search?q=image%20resize