trying to fix

This commit is contained in:
Chris Cochrun 2022-01-03 12:41:35 -06:00
parent fa407dfeb6
commit e013d7569e
22945 changed files with 447936 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<p>Yuan Fu likes to take notes in which he can embed images. You can do that with Org, of course, but Fu doesnt like that Orgs solution boils down to a link to a file. That means you have to keep the file paths in sync. He wanted a solution that embedded the image in the file <i>and</i> made it easy to resize the image on the fly.</p>
<p>To a first approximation, <a href="https://casouri.github.io/note/2020/embed-images-in-text-files/index.html">his solution</a> is simple: Embed the image as a Base64 string at the bottom of the buffer and put an internal link to it at the point to where it is to appear. Of course, there are complications. First, theres handling the resizing. Thats not too hard but there are also display issues such as having reasonable scrolling. Fu has some animated screenshots that show this in action. It appears to work well.</p>
<p>The <a href="https://github.com/casouri/lunarymacs/blob/master/site-lisp/iimg.el">code</a> does not appear to be in Melpa and Fu doesnt say whether he plans to submit it but its a single file and should be easy to load and try out. If you have a need to permanently embed images in a file and dont want to have to worry about keeping file paths in sync, this is a good solution.</p>