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

Resize images #16

Closed
lyso opened this issue Jan 2, 2023 · 2 comments
Closed

Resize images #16

lyso opened this issue Jan 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@lyso
Copy link

lyso commented Jan 2, 2023

Is your feature request related to a problem? Please describe.
When copy HTML of a note with images, it can convert the image into base64 inside the HTML. This is a great feature! Thanks so much.

But the images are in their raw file image sizes in the output HTML. For example, a png file of size 1920*1080, and in the note it was set display width as 400 (![[image/path.png|400]]). In the copied HTML, it is still 1920 wide not 400.

Describe the solution you'd like
If it is possible to have the image resized according to the MD setting? like ![[image/path.png|400]] ?

Describe alternatives you've considered
na

Additional context
na

@mvdkwast
Copy link
Owner

Hi @lyso,

I wasn't aware that this was even possible in Obsidian. Very good suggestion indeed, that would give a lot more control over the resulting size of the base64.

I will look into this.

@mvdkwast mvdkwast added the enhancement New feature or request label Jan 14, 2023
@mvdkwast mvdkwast added the good first issue Good for newcomers label Apr 17, 2023
@mvdkwast mvdkwast removed the good first issue Good for newcomers label Sep 13, 2023
@mvdkwast
Copy link
Owner

This seems to be fixed by the updates to the internal Obsidian markdown renderer.

Feel free to reopen if you can still reproduce the issue.

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

No branches or pull requests

2 participants