REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    picture as background

    REXYGEN HMI Designer
    2
    3
    333
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Scoobsalamander
      last edited by

      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");
      }
      
      1 Reply Last reply Reply Quote 0
      • ondrej_severaO
        ondrej_severa
        last edited by

        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.

        1. Copy your background to the hmisrc folder in your project. Then point your CSS to background-image: url("/hmi/background.jpg");
          The disadvantage of this approach is that you will upload your background every time you compile the project.

        2. 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 to background-image: url("/background.jpg");

        Best regards
        Ondrej

        S 1 Reply Last reply Reply Quote 0
        • S
          Scoobsalamander @ondrej_severa
          last edited by

          @ondrej_severa Thanks, solution 1 is working fine. With solution 2 I have problems with the permission to write to this location.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

          There is also an outdated REXYGEN community forum.

          Powered by NodeBB.