Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Scale image #5

Open
Bananas-Are-Yellow opened this issue Apr 17, 2021 · 2 comments
Open

Feature Request: Scale image #5

Bananas-Are-Yellow opened this issue Apr 17, 2021 · 2 comments

Comments

@Bananas-Are-Yellow
Copy link

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
Copy link
Author

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.

@CalebJohn
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants