Unfortunatly this is something that is more on the Roam side of things than Obsidian. It’d be nice if Roam downloaded images, so perhaps there’s a tool to do this, but I’m not aware of where to find it.
i’ve tried to do this by writing a plugin.
but when i try to use a function called “fetch”, the console told me:
fetch url was blocked by app://obsidian.md, for cors reason.
Looks like Obsidian’s web browser engine that runs your code blocks requests to third-party sites, because these sites do not allow requests from your current site (app://obsidian.md) according to Obsidian’s CORS policy.