joplin-rich-markdown icon indicating copy to clipboard operation
joplin-rich-markdown copied to clipboard

Feature Request: Scale image

Open Bananas-Are-Yellow opened this issue 3 years ago • 2 comments

Please see this forum question for the background to this feature request.

I'm already using your plug-in because this allows me to see an image in the markdown. With most markdown, you can read and write the markdown and understand it, but with an image, you can't read it (see it) and you can't type it in. You have to paste it in, and without a preview of some sort, you are blind unless you switch to the rendered view.

The enhancement I would like is to be able to adjust the scale of the image: 25%, 50%, 75%, 100%, 150%, 200%. In my case, because the image is a screenshot from a HiDPI display, I want to scale it to 50% in order to get the same size and pixel density as it was on my screen.

For scales other than 100%, it is fine that the markdown changes to an <img> tag.

Is that an enhancement that fits with the philosophy of this plug-in?

Bananas-Are-Yellow avatar Apr 17 '21 18:04 Bananas-Are-Yellow

Just noticed that if I open the markdown in Typora, I can use the context menu and scale it to 50%. It turns the markdown into an <img> tag:

<img src="resources/d7fc64779d7a45e4899d3531a382db28.png" alt="ca3a4b24b25add30cb069e8bf935aa1e.png" style="zoom:50%;" />

It's centred in Typora but when I return to Joplin, it is left-justified, which is better.

If I can do this without opening in Typora, that would be great.

Bananas-Are-Yellow avatar Apr 17 '21 19:04 Bananas-Are-Yellow

This is a good feature request.

Unfortunately, I don't see myself implementing this feature in the near future. I will accept a pull request, and can provide some help to anyone seeking to implement it.

CalebJohn avatar Jun 08 '21 00:06 CalebJohn