Absolute image paths don't work
See original GitHub issueWhich version of the plugin are you using? [x] Data Populator for Sketch [ ] Data Populator for Adobe XD
Describe the bug
Using absolute image paths appears not to work:
{
"title": "chrome.storage - Google Chrome",
"icon": "/Volumes/Data/Work/Projects/Extensions/Tabnado/design/themes/icons/exist.png"
},
The text populates, but the images don’t.
Using relative image paths does work though.
Expected behavior The images would be populated.
Environment (please complete the following information):
- macOS Version: [macOS Sierra 10.12.6]
- Sketch Version [Sketch 51.2]
- Plugin Version [2.3.5 + 3.0.0]
Additional context
I tried also tried with with file://
but that didn’t work.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
src absolute path problem - html - Stack Overflow
First open the image in any web browser. Then copy the path and add it as image source location like this :
Read more >Images and figures can't have absolute paths: leading slash is ...
Describe the bug Images and figures can't have absolute paths: leading slash is removed at build. To Reproduce Steps to reproduce the ...
Read more >img src not taking absolute path - MSDN - Microsoft
data has the value : picture.jpg . it works fine no issue. ... Does img src take only relative path and not absolute...
Read more >Relative and absolute paths, in the file system and on the web ...
On Windows, the filesystem doesn't have the common root for the whole system but split between disks, so an absolute paths starts from...
Read more >Markdown preview doesn't render image with absolute path ...
Markdown preview doesn't render image with absolute path relative to project root · 1. Place an image in the project at assets/img.png ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, my bad. I thought that this path should be relative to sketch file not the JSON file. Thank you for your help.
We’ll add a hint to the documentation and close this issue.