Issue syncing images inside Notes (using Attanger/OneDrive + External Image Host)
Hi,
I am encountering an issue with syncing images embedded within Zotero Notes across two Windows computers.
My Setup:
OS: Windows (2 devices)
Syncing: I use Zotero Data Sync for library items and notes.
PDF Attachments: I use the Attanger plugin combined with OneDrive to manage PDFs as Linked Files. This part works perfectly.
The Problem: Images inserted into Zotero Notes do not sync between my computers. An image inserted on PC A does not display on PC B.
What I have tried: To bypass Zotero's internal storage limit, I set up a self-hosted image host using Cloudflare. I attempted to insert images into my notes using the direct URL or Markdown syntax.
Result: The images display correctly on the original computer (PC A). However, on the second computer (PC B), the images fail to load/display.
Verification: My Cloudflare image links work perfectly in other software on both computers.
Could anyone explain why Zotero on the second device fails to render these external image links, and how I can solve this?
Thanks in advance.
I am encountering an issue with syncing images embedded within Zotero Notes across two Windows computers.
My Setup:
OS: Windows (2 devices)
Syncing: I use Zotero Data Sync for library items and notes.
PDF Attachments: I use the Attanger plugin combined with OneDrive to manage PDFs as Linked Files. This part works perfectly.
The Problem: Images inserted into Zotero Notes do not sync between my computers. An image inserted on PC A does not display on PC B.
What I have tried: To bypass Zotero's internal storage limit, I set up a self-hosted image host using Cloudflare. I attempted to insert images into my notes using the direct URL or Markdown syntax.
Result: The images display correctly on the original computer (PC A). However, on the second computer (PC B), the images fail to load/display.
Verification: My Cloudflare image links work perfectly in other software on both computers.
Could anyone explain why Zotero on the second device fails to render these external image links, and how I can solve this?
Thanks in advance.
Upgrade Storage
As you probably found, each note image is stored as image.png in a uniquely- and arbitrarily-named folder under Zotero\storage. There is one folder per image, with nothing else in its folder. So if a note has 4 images, there will be 4 folders/PNG files. The note's text content is instead stored in the Zotero database, along with embedded placeholder/pointers to any named image folders in the note (so that note information is all synced via Zotero data syncing). That's how Zotero constructs the complete note for display on any given computer. If Zotero cannot find the folder/image for an image in a given note on a given computer, it will just show an empty square placeholder in the note.
Other possible solutions to the problem of syncing images would include adding images as linked attachment files to each item, instead of embedding them in notes. Of course depending on how you use the images, that might not be useful at all.
Another solution would be to symlink (only) your Zotero\storage folder hierarchy to the cloud, and across computers. That would not require Zotero file syncing, but is an advanced-user option.
https://forums.zotero.org/discussion/90648/symbolic-link
Another solution (somewhat tedious) that would not require Zotero file syncing would be to mirror *only* the folder/images structure from Zotero\storage in a separate cloud repository (Dropbox, Onedrive, Google Drive, etc). You would be responsible for copying/pasting that repository from/to Zotero\storage to keep it up to date on each Zotero computer (eg with an tool that only copies newly-added PNG folders/files). So the folder name placeholder is already synced in the note data (by Zotero), and you have copied the folder/image across computers. You could try this first with a single note/folder/image to see if it works for you. It's basically a partial version of keeping Zotero storage up to date across computers by copying all those files between them (which some people who want to avoid Zotero servers apparently do) ....
https://www.zotero.org/support/sync#alternative_syncing_solutions