Alternatively, if on Linux you can create a symbolic link in $OPENHAB_CONF/html to the local directory where your images are stored. Having a symbolic link is especially useful if you have large images, or a lot of images, because it will keep your openHAB backups small. Well, maybe not small, but definitely smaller than they would be by putting the images in $OPENHAB_CONF/html.
let’s say you have a subfolder in /tmp/something/ with all your image files (e.g. hot.png)
you can create a symbolic link to that subfolder within $OPENHAB_CONF/html/ in order to avoid copying the image files to that destination
the command would look like this:
ln -s /tmp/something/ /etc/openhab2/html/
This will create the “virtual” subfolder /etc/openhab2/html/something/