1

Closed

Trying to load a png in silverlight causes "Exception of type 'ImageTools.IO.UnsupportedImageFormatException' was thrown."

description

Hi.
 
Thank you for .NET Image Tools.
 
When I try to use the attached png I get the following error:
 
Exception of type 'ImageTools.IO.UnsupportedImageFormatException' was thrown.
at ImageTools.Image.DoLoad(Stream stream)
at ImageTools.Image.<Load>b__12(Object x)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
 
Visual Studio 2010
Silverlight 4
 
xmlns:imageTools="clr-namespace:ImageTools.Controls;assembly=ImageTools.Controls"
 
<imageTools:AnimatedImage Source="../Assets/test.png" />
 
Using May 8 Change Set 48009.
 
Any ideas?
 
Thank you.

file attachments

Closed Jul 14, 2010 at 6:56 PM by malignate88
See comments, not a real bug.

comments

icnocop wrote Jul 13, 2010 at 10:51 PM

Just wanted to add that neither the LoadingFailed nor BindingValidationError events were raised.

malignate88 wrote Jul 14, 2010 at 7:55 AM

Thx for the post, will have a look when I have time (at the moment I have to learn for university).

malignate88 wrote Jul 14, 2010 at 6:55 PM

The image works perfect. Please register the decoders:

Decoders.AddDecoder<PngDecoder>();
Decoders.AddDecoder<JpegDecoder>();
...

wrote Jul 14, 2010 at 6:56 PM

wrote Feb 21, 2013 at 11:53 PM

wrote May 16, 2013 at 11:21 AM

Swinburne wrote Apr 1, 2014 at 7:58 AM

I am courious about this png loading issue, once, I also met this problem, I don't know, either do I register the decoders, I just tried again to see I'm lucky or not.