farling42 / RWoutput

Tool to convert a Realm Works Output file into other formats.
GNU General Public License v3.0
14 stars 0 forks source link

Request: Ability to resize images on import #41

Closed Sklore closed 2 years ago

Sklore commented 2 years ago

I'm not sure I completely understand the format you are using for linking images yet however there is capability to set image sizes using something like:

![[Image.png|200]]

Where 200 could be a variable fed in via the Output Formatter?

farling42 commented 2 years ago

Smart Images are imported to use the Leaflet plug-in, which adds support for map pins.

All other images are imported as separate asset files which are linked into their containing page using the simple obsidian format of: ![filename]

farling42 commented 2 years ago

A specific height is set for Smart Images, since Leaflet requires a viewport onto the actual map; whilst currently no explicit height is given for other images.

farling42 commented 2 years ago

A single number would define the width of the picture, so it would not widen when the page is widened.

Sklore commented 2 years ago

Smart Images are fine. An option for Simple Images would be great though. Personally I feel the images are taking up to much space. As a DM I want to review the picture quickly, maybe share it, but I need the content. I've been adding |200 to mine for example.

image

farling42 commented 2 years ago

V3.14 fixes this. Max Image Width field changes to numeric field, and now gets applied to markdown output.