images on github wiki and PDF export

5 days ago

I have a org-mode document, with some inline images:

[[path/to/image.png]]

These render properly on GitHub wikis, but fail when I use org-latex-export-to-pdf. However, I can get the pdf export to work by changing the path slightly:

[[./path/to/image.png]]

Notice the ./ at the beginning. But writing them in this way breaks the link for GitHub wikis. As a workaround, I manually changed the image references, but I am hoping there's a better way.

Is there a way to include images which properly renders both in GitHub wikis and org-latex-export-to-pdf output?