Inserting images?

Dear all!

I am looking for the best practice to include images into notes, such that you get inline markdown references.

I need to include screenshots on my iphone / ipad.

If you are storing images online then it is like any Markdown image link.

If you want them locally for previewing, read this about local assets.

It is the basis for what I use when I am at conferences to link photos of session slides into my notes in Drafts.

It is my practice. Whether that is '“best” practice or not is up for debate :wink:

Thank you really much for your reply and help.

I am actually new to Drafts, not familiar with it. But I managed to get it connected with my Github repo. Thus I can save markdown files, but I also want to sync screenshots which should be included as inline references. I am looking for a frictionless way of getting screenshots from my iOS photos library into my markdown as inline references.

From your explanations, I understand that I need to store the images in Draft’s Icloud folder and then reference them manually from the preview window. Seems a little cumbersome, and I hoped that there might exist slighlty more convenient methods.

Try setting out exactly what you would like to do. You have just mentioned GitHub and the Photos app.

Storing images in the specific preview location is one option. As I noted, if they are online, there is nothing special to get it to work - just like you would for any online image.

Maybe you are looking for an action to help you somehow?

Knowing your end goal and preferred workflow would help us understand what you are really asking for.

I am experimenting with a custom action that pushes the current note to my private Github repository. It works fine for pure text documents.

In addition, I plan to use ‘let attachments = draft.attachments;‘ to access screenshots imported from my local picture library on my iPhone. Those attachments shall be send to the Github repo along with the text document. While potential in-line references should be parsed and translated according to the repo structure.

Not sure whether this can work and not sure how to add attachments in the first place. Gemini says there should be an option to insert attachments. But I cannot find such an option. Maybe it was hallucinating.

Drafts does not have attachments, or work directly with importing images in any way. It only works with plain text. So, Gemini might need a nap.

1 Like

Thank you!!! I appreciate your help.

I assume that these two scripts might show me a way: