FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Some SVG images are displaying and some are not

Open inforontecman opened this issue 3 years ago • 3 comments

🐛 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

inforontecman avatar Mar 03 '22 14:03 inforontecman

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

hanzall avatar Apr 26 '22 18:04 hanzall

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

MTrinkiesJr avatar Aug 16 '22 21:08 MTrinkiesJr

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

yuriibabii avatar Sep 09 '22 11:09 yuriibabii