[Interest] SVG is loaded with invalid dimensions on some machines

Elvis Stansvik elvstone at gmail.com
Thu Apr 18 08:38:54 CEST 2024


Den tors 18 apr. 2024 06:17Alexander Dyagilev <alervdvcw at gmail.com> skrev:

> Hello,
>
> A few of our users have issues with UI rendering. We SVG sprite to display
> some elements of our UI. This SVG has a size specified in it (93x456). And
> of course we rely on it. The issue is that sometimes it's loaded with
> 116x570 size due to some unknown reason. So it's like a different image and
> we can't use such a sprite properly anymore.
>
> What can be the cause of that? I've attached this sprite image.
>

570/456 = 1.25 which is a common screen scaling factor, so possibly you
need to take that into account when rasterizing the SVG for display on
screen? Just a guess..

Elvis

_______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240418/2ae00896/attachment.htm>


More information about the Interest mailing list