Export of images in annotations is not yet available, right?
When I drag and drop an annotation from the zotero reader to a text editor the text of the annotation (and more, as described at https://www.zotero.org/support/note_templates) is exported to the text editor. This is really a fantastic feature!
But when I drag and drop an annotation that contains an image instead of text, it doesn't work (the image is not transferred). Since I don't see images mentioned on https://www.zotero.org/support/note_templates I assume that this means that image export via drag and drop is not (yet?) supported. Is this correct?
But when I drag and drop an annotation that contains an image instead of text, it doesn't work (the image is not transferred). Since I don't see images mentioned on https://www.zotero.org/support/note_templates I assume that this means that image export via drag and drop is not (yet?) supported. Is this correct?
If you want images to be exported when you drag notes, you'd have to say what export format you're referring to (i.e., Markdown, rich text, or HTML) and exactly what form you expect the image to be in. See my comment here for more.
Regardless of the terminology, I can clearly see a connection: I have successfully adapted the note template for dragging and dropping annotations so that the result I get in the text editor looks the way I want it to. I did this by editing
extensions.zotero.annotations.noteTemplates.highlight
as described at https://www.zotero.org/support/note_templates. I did not have to edit any export Format, and it works with text annotations. So it seemed logical that the exporting image annotations could also be controlled there.But from reading the thread you linked, I understand the that in the case of images, we need to either include a link to the image or include it in base64 encoded format (I am exporting to Markdown) and I suppose that this "handing over" of the image would be done "inside" the
{{highlight}}
variable, which is whyextensions.zotero.annotations.noteTemplates.highlight
doesn't need to be edited for this?In any case: In that thread, the conclusion seems to be that for quick copy (of which drag and drop is a variant, right?) the best solution would be base64. So my question, then, is: how do I accomplish that?
Easiest solution to get you images from notes in export would be to use the better notes plugin linked on that page, I believe. I don't think there's a quick copy option.
Anyway, I am just explaining what this is not obvious. Your answers help be understand better. So the image is included in the
{{highlight}}
variable, right?Thank you for pointing me to the Better Notes Plugin. When I saw it some time ago, I thought it was not relevant for me because I don't use Notes in Zotero. I will take a closer look at it asap, but having skimmed through the documentation, it appears that using it entails first creating a zotero note from the annotation and then exporting the note, is that correct?
In that case, I'd still be interested in learning more about using base64 for Quick Copy as suggested at https://forums.zotero.org/discussion/comment/409390/#Comment_409390.
And that's why note templates still aren't relevant here. There's no note template for image annotations — only for highlight and note annotations — so the output here would just be identical to dragging an image annotation to an empty note and then exporting that note. There'd be the same issue with an image you added directly to a Zotero note. All that matters is that images aren't included in note exports, for the reasons in the linked thread.