mgmeyers / obsidian-zotero-integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
GNU General Public License v3.0
1.02k stars 55 forks source link

Error in Images name and folder import #364

Open Javidelaguila opened 4 months ago

Javidelaguila commented 4 months ago

Hello! I was developing an annotations image import template, however I found something weird when testing several papers. In the plugin options, I set a folder for images (Files) and a base name using {{citekey}} to store the images in a consistent way. However, when I import the item and go to Data Explorer to check everything, I find these errors with the images metadata:

imageBaseName"output_path-10-x43-y221.png" imageRelativePath"base_name/output_path-10-x43-y221.png"

neither the folder or the basename setted in the template are being applied to the final product. weirdly enough, the images are actually stored in the right folder with the right name!! So I have a file called "@citekey-10-x43-y221.png" in the Files folder of my vault, that the template is incapable of finding using {{imageBaseName}}

For now I just changed the template image base name to "output_path" to bridge the issue and its actually working, but loosing inconsistency. What may be happening? haven't read any of this in the forums, but I have also tried many things on my side for fixing it

Let me know if I can provde more info Thanks!