Comments (4)
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:
- Fonts/images/assets not found in an implicitly referenced project (#21469), similarity score: 0.80
- Microsoft.Maui.Controls.ImageSource.FromFile fails in iOS when image in subfolder (#22887), similarity score: 0.79
Closed similar issues:
- SVGs not showing on iOS (#8663), similarity score: 0.80
- [.net7][iOS] IconImageSource on TabbedPage Causes Crash [MAUI Blazor] [Related #12403] (#14850), similarity score: 0.78
- Maui Resizetizer Error - Unable to allocate pixels for the bitmap when using an SVG image (#12109), similarity score: 0.78
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
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.
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.
from maui.
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)
- [MAUI]I1_Layout - The content of the long text items overlaps. HOT 1
- Using Label's Style in ContentPage.Resources or not, it makes different appearance HOT 3
- [MAUI] I6_Grouping_VerticalItemSpacing :Grouped CollectionView have extra space HOT 1
- XamlC XC0045 on Reference Bindings pointed to XAML HOT 3
- Android compatibility tests broken on net.9 HOT 2
- [Android] CarouselView + CollectionView performance issues HOT 4
- [MAUI] `File.Designer.cs` is not generated for `File.resx` placed in MAUI Library HOT 2
- Shell Tabs on Android are sometimes not visually removed from view when IsVisible is set to false. HOT 4
- "FileSystem" doesn't work on .net maui 9 preview blazor hybrid "Web App" project HOT 4
- FlyoutItemIsVisible doesn't work for nested content HOT 1
- [Windows][Bug] Shell shows as blank screen when returning from another page HOT 3
- [iOS, 9.0 Preview 6] SkiaSharp 3.0 Preview 4.1 has a severe memory leak on iOS HOT 2
- Screenshots taken using IScreenshot.CaptureAsync don't include popups or visible alerts HOT 2
- Android Tabbar, clicking 4th tab opens the 5th tab HOT 1
- Scrollviews inside Grids come up faulty in screenshots HOT 3
- Grid with auto width columns overflows its container HOT 2
- My Splash screen is not working in ios after upgrade to net8.0 HOT 3
- [Windows, .NET 9.0 Preview 6, SkiaSharp 3.0-preview4.1] SKGLView crashes the app when .NET MAUI App is built in the unpackaged mode HOT 2
- Android Back Button Minimizes App When BlazorWebView Inside RefreshView HOT 2
- Maui Blazor Hybrid app crashes on connected device after splash screen, but works on simulator HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.