Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External images on the computer #17

Open
Tanjamuse opened this issue Mar 18, 2024 · 1 comment
Open

External images on the computer #17

Tanjamuse opened this issue Mar 18, 2024 · 1 comment

Comments

@Tanjamuse
Copy link

I would love for this to work with external images on my computer, because as it is right now, all I get is a blank square, like this.

gallery

@draganmarjanovic
Copy link

I can confirm this is an issue on Mac running a newer version of macOS.

The issue appears to be because of the way Mac handles applications accessing the filesystem.


Technical Notes:

  1. If you import an image like so (without the plugin) ![](file:///some/demo/directory/file.jpg)
  2. You will get a prompt to allow access to the file system
  3. If you accept the prompt, the image will display.
  4. By inspecting the page source (and the displayed image in particular), you will notice that the URL that is being loaded looks something like app://fd37bba83bcabf5e461d9e0fb/some/demo/directory/file.jpg
  5. Putting this URL inside the plugin snippet works just fine (I suspect this URL is scoped in permissions for the app to access).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants