public object ConvertFromInvariantString(string value) { var imgConverter = new FFImageLoading.Forms.ImageSourceConverter(); var text = value as string; if (string.IsNullOrWhiteSpace(text)) { return(null); } var xfSource = imgConverter.ConvertFromInvariantString(value) as ImageSource; if (text.IsSvgFileUrl() || text.IsSvgDataUrl()) { return(new SvgImageSource(xfSource, 0, 0, true)); } return(xfSource); }