Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

SVG Images in a frame scale issues

matthew
2022-01-12
2022-01-12
  • matthew - 2022-01-12

    Hi There,

    I'm having issues with SVGs in a frame not staying the correct size/aspect ratio. I have tried all the scale options that are available with no change. Even fixed the WebVisu screen size etc I have attached some images and a test project.

    I'm trying to create dynamic elements using frames. I have 3x different coloured SVGs and controlling there visibility based on the state I require. Everything else works fine, just the scale of the frame/image is the issue.

    Thanks,
    Matthew

     
  • m.prestel - 2022-01-12

    Please report this bug via the store.

     
    • matthew - 2022-01-12

      Is there any sort of work around for this? I have to install onsite and get everything working soon. Thanks

       
      • m.prestel - 2022-01-12

        Adjust the size of the image to match the size of the offline image

         
        • matthew - 2022-01-12

          There is no way to adjust offline images as they only change size in the online run mode. Note I will have many images making up a production line so they all have to stay to the correct scale/size. It seems to be an issue with SVG from Symbol Factory format.

          Edit: It seems to be an issue with that SVG Image and the way it's produced from symbol factory. I can repair the image by opening it in inkscape and make the page fit the image and then everything works fine now. ( This is in document settings Resize page to drawing or selection )

           

          Last edit: matthew 2022-01-12

Log in to post a comment.