Xamarin.forms: [Bug] Xamarin.Forms Image not work

Created on 5 Mar 2020  路  9Comments  路  Source: xamarin/Xamarin.Forms

Description

In some times Image not load image,
First image : //assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png
this img can show in webbrowser , but not on my Simulator

Second image: http://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Papio_anubis_%28Serengeti%2C_2009%29.jpg/200px-Papio_anubis_%28Serengeti%2C_2009%29.jpg
this image is from official tutor => https://docs.microsoft.com/en-us/xamarin/get-started/tutorials/image/?tutorial-step=1&tabs=vswin
Then , the second imguri is work on my simulator

Steps to Reproduce

Same code :

HeightRequest="300" />

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue: Xamarin.Forms 4.3.0.908675
  • Last known good version: Xamarin.Forms 4.3.0.908675
  • IDE: Visuao Studio Mac Community 8.4.7
  • Platform Target Frameworks:

    • iOS: Simulator iPhone 11 iOS 13.3

    • Android: None

    • UWP: None

  • Android Support Library Version: None
  • Nuget Packages: None
  • Affected Devices:None

Screenshots

Reproduction Link

image

Workaround

No, I find many answer, like add a convert to Image Source binding , it also not working on my Simulator.

unverified bug

Most helpful comment

The latest news !

I try use ffimage load uri : http://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png

it's work!

And I check the image reponse header, this image format is image/webp , so this is the the reason
锛燂紵

But what I found a solution for this bug. And do you plan update this ImageCell class function , let it support all image format? Or can you include some package like ffimageloading to surpport all image formats?

I think display a network image is a basic feature, so if it not work will let me very anxious.

All 9 comments

I think this is so funny , why I use your offical image the imagecell is work, I use my own uri it's not work ??

This so basic feature why is so hard to use ???

MS is the biggest bug factory, Apple is the second.

灞忓箷蹇収 2020-03-06 涓婂崍12 13 01

image

I found this repo with keyworkd "FromUri" , there is another three isssue , and I ask google also have many items , why you cant fix this bug ???? It's so hard to fix ???

I look at you write many test case for FromUri MediaSrouce , but they were useful truly??

Hope you can fix this question , I very very anxious

Thanks so much.

@blackcatpolice this should be fixed on 4.4 and 4.5 can you try there?

Thanks your message, I update my nuget package to Xamarin.Forms 4.5 and Xamarin.Essentials 1.5 and I clear my solution and rebuild all solution , it is also not work.

image

@blackcatpolice can you attach a repro?

Thanks your message

Here is my code https://github.com/blackcatpolice/XamarinImageFromUriBugIssue

Thanks

I try again , and I test tow formats image .

PNG: it's not work

JPG: It's OK!

So, this Image Cell not work on png ?
Or I need some special operation for png image?

Thaks ~

The latest news !

I try use ffimage load uri : http://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png

it's work!

And I check the image reponse header, this image format is image/webp , so this is the the reason
锛燂紵

But what I found a solution for this bug. And do you plan update this ImageCell class function , let it support all image format? Or can you include some package like ffimageloading to surpport all image formats?

I think display a network image is a basic feature, so if it not work will let me very anxious.

I don't think WebP in a control is supported out of the box on iOS and that is why we don't support it as well. Sorry if that gave you trouble!

I did take a look at your reproduction and it seems that you have the SyncFusion license key in there, so you might want to take that down and see if you can regenerate a key because it's likely other people might have gotten it now.

Was this page helpful?
0 / 5 - 0 ratings