hundredrabbits / Ronin

Experimental Graphics Terminal
https://hundredrabbits.github.io/Ronin/
Other
1.2k stars 67 forks source link

Image not loading #142

Open bubbletrex opened 2 years ago

bubbletrex commented 2 years ago

Hi

I'm trying to open an mage from my laptop onto the html window.

I have a feeling this is a coding newbie issue.

Basically it tells me that it can't find the file or understand the file path.

image

Any ideas?

I've also tried to open an image [^U], but there is no response/change.

blad commented 2 years ago

The browser, and as a result Ronin, does not have access to the file system, the image path is the name of any file "uploaded" aka dragged and dropped into Ronin.

The simplest way to get the path into your ronin script is to use the $path helper and then drop in your image.

(echo $path) gets converted to (echo "image.png") after an image is dragged into the window.