FFImageLoading
FFImageLoading copied to clipboard
Some SVG images are displaying and some are not
🐛 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
It's because your SVG file contains "pattern" tag. The latest version of this package does not show files that contain pattern tag unfortunately!
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 Thank you for you reply. I wouldn't found it without you. I was getting half of my image because of g tag