Images in html export.
Is there a way to make sure that images rendered using the Dump() method are rendered properly in the html export?
For instance indicating a relative folder when executing LPRun where LPRun will store the images and these will be linked properly using relative paths in the resulting html?
To make sure the export is portable.
For instance indicating a relative folder when executing LPRun where LPRun will store the images and these will be linked properly using relative paths in the resulting html?
To make sure the export is portable.
Comments
Method:
- Convert image to base64 encoded string
- Display image using data:image URI
However, what does that achieve? The resulting html file still has an absolute path to "C:\Users\\AppData\Local\Temp\LINQPad5\something\something". If I want to copy the html file to another place, I can't take the image with it. For all I know, the image may already have been cleaned up and deleted.
In short: this doesn't create a portable html file when exported:
I was looking for a way to designate a resources folder where those images would end up. But this is even better.