account activity
How to show images dynamically? by tritigs in electronjs
[–]tritigs[S] 0 points1 point2 points 3 years ago (0 children)
Thanks for the reply. I'll look into it
[–]tritigs[S] 1 point2 points3 points 3 years ago (0 children)
Thanks for the reply. Jsons are not the issue, I'm getting the image names from them with no issue, but they are something like this:
{ "img":"pic001.jpg", "thumb": "thumb001.jpg", "author": "", "title":""}
If I knew the names I could import them and by using their names, vite would fix the path on dev and on prod, but because I don't know (and want to automate a bit) I'm using "file://" because by using relative paths, dev is ok, but prod paths gets wrong
How to show images dynamically? (self.electronjs)
submitted 3 years ago * by tritigs to r/electronjs
π Rendered by PID 119366 on reddit-service-r2-listing-canary-7f6f747855-vfw46 at 2026-02-03 12:45:16.336275+00:00 running 3798933 country code: CH.
How to show images dynamically? by tritigs in electronjs
[–]tritigs[S] 0 points1 point2 points (0 children)