Giter Club home page Giter Club logo

Comments (4)

github-actions avatar github-actions commented on August 15, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from maui.

JRPMike avatar JRPMike commented on August 15, 2024

Ok, so changing to using .png instead of .svg works for both (as in the documentation, that I apparently missed). There should be a transform or a warning or better error message suggesting this as a solution as the current behavior is not at all intuitive (especially since it works fine to reference the .svg file on Android).

from maui.

Zhanglirong-Winnie avatar Zhanglirong-Winnie commented on August 15, 2024

This issue has been verified using Visual Studio 17.11.0 Preview 2.1 (8.0.40 & 8.0.21). Can be reproduced on iOS platform.
image

from maui.

Domik234 avatar Domik234 commented on August 15, 2024

Ok, so changing to using .png instead of .svg works for both (as in the documentation, that I apparently missed). There should be a transform or a warning or better error message suggesting this as a solution as the current behavior is not at all intuitive (especially since it works fine to reference the .svg file on Android).

MAUI uses Resizetizer to convert svg files to png files. That happens only for MauiImage/MauiIcon/MauiSplash build actions. That's the reason why you can use .png for both but that also means that it's no more vector image but raster image. This action provides multiple sizes result that can be used to distribute only the right size for specific device that uses the app after publishing to Apple AppStore/Google Play.

Still using the Embedded Resource should let you be able to reach the file in the package but decoding/loading the image must be supported onto the platform (or you have to add the support using package or custom implementation) and you have to know the correct path.

Maybe this can help: #7070 (reply in thread)

from maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.