• Questions

     
    1
    0
    -1

    I've noticed the UI Image will crop the image to make it fit within parameters. Is there any way it can scale the image?

      CommentAdd your comment...

      2 answers

      1.  
        1
        0
        -1

        Thanks, Maria Heij. I have experimented and here's what I've come to understand. Please correct me if I'm wrong.

        I've set the width to 100% and the height to XXpx

        If this is larger than the native size of the image it will scale to fit the width and the height will be cropped if needed.

        If a user resizes the browser until width and height match the native size of the image the image will be displayed.

        If the user resizes smaller than native size the image will be cropped in both width and height.

        This seems consistent with your examples above.

        1. Maria Heij

          Yes, that sounds about right! I hope you can figure out a setup that will work for you. 

          Best Regards, Maria Heij

        CommentAdd your comment...
      2.  
        1
        0
        -1

        Hi there Bill

        I apologise for the late reply here. UI Image can be used with either pixel values or percent values and with percent, it depends on where the image is contained. You could perhaps also edit your picture to make it work? The documentation gives you some idea: https://docs.refinedwiki.com/x/CgbXAQ

        Or, something like this: 

        An example: 

        Let me know if this answers your questions or not. 

        Best Regards, Maria Heij

          CommentAdd your comment...