Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some SVG images are displaying and some are not #1559

Open
inforontecman opened this issue Mar 3, 2022 · 3 comments
Open

Some SVG images are displaying and some are not #1559

inforontecman opened this issue Mar 3, 2022 · 3 comments

Comments

@inforontecman
Copy link

🐛 Bug Report

Hi,

I’ve a requirement to show “.SVG” image on my Xamarin form. The “Xamarin.Forms.Image” control is not showing the SVG images so I tried using the
“FFImageLoading” control. With FFImageLoading, some SVG images are getting displayed and some are not getting displayed.

Reference Code :

xmlns:ff="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"

xmlns:ffSvg="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"

xmlns:ffTransformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations"

<!—Image not displayingà

<ffSvg:SvgCachedImage WidthRequest="50" HeightRequest="50"
Source="https://upload.wikimedia.org/wikipedia/de/5/5c/Chelsea_crest.svg"/>

<!—Displaying imageà

<ffSvg:SvgCachedImage WidthRequest="50" HeightRequest="50"
Source="https://upload.wikimedia.org/wikipedia/en/f/fd/Brighton_%26_Hove_Albion_logo.svg"/>

Expected behavior

Reproduction steps

Configuration

Version: 1.x

Platform:
Xamarin.Forms

@hanzall
Copy link

hanzall commented Apr 26, 2022

It's because your SVG file contains "pattern" tag. The latest version of this package does not show files that contain pattern tag unfortunately!

@MTrinkiesJr
Copy link

MTrinkiesJr commented Aug 16, 2022

Is there any list of supported/unsupported tags? I have the same issue and I thing its because my images contain a <g> tag

@yuriibabii
Copy link

@MTrinkiesJr Thank you for you reply. I wouldn't found it without you. I was getting half of my image because of g tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants