picture as background
-
Where do I store a picture which is used as background?
If I use an url on the internet of on my local webserver on my NAS-drive it is working fine but I would like to download the picture to the raspberry pi which is running Rexcore. Where and how do I store this image?
This is what I use in my custom css file...
body { background-image: url("background.jpg"); }
-
Dear Scoobsalamander,
your background must be available in the www folder of the webserver. You have two possible options for how to upload your picture to the webserver.-
Copy your background to the
hmisrc
folder in your project. Then point your CSS tobackground-image: url("/hmi/background.jpg");
The disadvantage of this approach is that you will upload your background every time you compile the project. -
Use WinSCP or a similar tool to upload your background to the target. The location must be in the webserver root or below. The root of the webserver is in
/rex/www
folder. So upload your background to '/rex/www/bacground.jpg' and change your CSS tobackground-image: url("/background.jpg");
Best regards
Ondrej -
-
@ondrej_severa Thanks, solution 1 is working fine. With solution 2 I have problems with the permission to write to this location.