unoplatform / uno.resizetizer

The home for Uno.Resizetizer, an image resizting tooling for Uno Platform apps
https://platform.uno
Other
16 stars 7 forks source link

iOS does not show proper scale svg image. #313

Open yeahg-dev opened 2 months ago

yeahg-dev commented 2 months ago

Current behavior

I'm struggling issue with svg file in iOS with Uno Single Project. As far as I know, just referencing svg file path in Image choose the appropriate scaled png file that device needs(ex. @3x). but my app can not display the right scaled image, so Image quality is poor.

 <Image Source="Assets/Icons/icon_plus.png" Width="50" Height="50" />

I followed the description in Uno Platform document https://platform.uno/docs/articles/external/uno.resizetizer/doc/using-uno-resizetizer.html?tabs=singleproject%2CAndroid#using-svg-images-vs-png-images-with-svg-underneath I added UnoImage build action in csroj.

// .csproj
<Project Sdk="Uno.Sdk">
 ...
  <ItemGroup>
    <UnoImage Include="Assets\Icons\*.svg" />
  </ItemGroup>
...
</Project>

But It didn't help.

Do I miss something when using svg file?

Expected behavior

Svg Image should rendered without lower quality.

How to reproduce it (as minimally and precisely as possible)

https://github.com/yeahg-dev/UnoSvgTest

Environment

Nuget Package: Uno Sdk : "5.2.175"

Package Version(s):

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

yeahg-dev commented 1 month ago

Anyone else having the same problem?

MartinZikmund commented 1 month ago

@yeahg-dev Agreed, I have seen such behavior before myself. We will make sure to look into this