obsidianmd / obsidian-importer

Obsidian Importer lets you import notes from other apps and file formats into your Obsidian vault.
https://help.obsidian.md/import
MIT License
709 stars 66 forks source link

Tiny graphics in Evernote become page sized in Obsidian #49

Open notuntoward opened 1 year ago

notuntoward commented 1 year ago

In the article I've clipped to Evernote, there are some tiny circular graphics that, in Evernote, look like this:

image

If I import that Evernote note into Obsidian (.enex file attached), those graphics look like this:

image

Evernote3_is_really_enex.txt

kepano commented 8 months ago

@akosbalasko do you know if .enex contains data for image sizes? I wonder if the bug described above could be solved by using the Obsidian image size attribute e.g. ![[image.png|30]] for 30px.

akosbalasko commented 8 months ago

@kepano , By default enex contains info about image sizes, but in this case these are note classic images, but the shapes are encoded into ugly inline styles:

<span style="margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; color: rgb(51, 51, 51); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Noto Sans&quot;, Ubuntu, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif; line-height: 1.5;">Diana Ivanova</span> 

Btw in the next phase of Yarle I plan to improve conversion around these inline stuff: https://github.com/akosbalasko/yarle/issues/589, https://github.com/akosbalasko/yarle/issues/590, if you wish, I can take this issue account during the development, and push my changes here as well.

notuntoward commented 8 months ago

I'd love it if you pushed the Yarle updates to this plugin. Fixes like this would make it possible to switch from Evernote to Obsidian.