sskodje / gifimagesource Goto Github PK
View Code? Open in Web Editor NEWGifImageSource is a Windows Runtime Component for WinRT projects, made for rendering GIF images in a resource efficient way using Direct2D.
License: MIT License
GifImageSource is a Windows Runtime Component for WinRT projects, made for rendering GIF images in a resource efficient way using Direct2D.
License: MIT License
I noticed an issue where some URLs were throwing an exception with the message The filename, directory name, or volume label syntax is incorrect
. After a little debugging this was happening with URIs that had a query after their extension.
It looks like the GetFileExtension function doesn't expect the query, so it returns a file extension with the query in it, e.g. .gif?w=200
. Because the filename then illegal file path characters, the exception occurs when trying to save to the cache.
Just create an image and try to set an image URI with a query in the path, e.g.:
<Image gif:AnimationBehavior.ImageUriSource="https://uploads.disquscdn.com/images/c6aed8d2d4ba77c60eee3f761004fc879c8ad0727419a7dd566081a8dad2fb34.gif?w=200" />
It's easy enough to strip the query from the path before setting it, but there might be cases where that changes the resource (size, quality, etc.). It wouldn't necessarily be ideal to save the resource while ignoring the query either, so the best solution could use some discussion.
It seems that there is an issue with 'multi-view' style UWP. In multi-view style, the app have multi window page, and each window page running with their own thread.
I've put the recreation sample to my onedrive.
http://1drv.ms/1TcJw5l
This sample is based on Microsoft UWP sample 'Multiple Views'. I've add the animated-gif image control to both main and secondary views.
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/MultipleViews
Here is a recreating procedure:
Hi, I use your nice library to show some local GIF files. Works very well and light, even on mobile. Trouble is as soon as the app visibility goes down, I get a crash with no exception. No crash happens if I remove the GIF view, nor does it crash on desktop/tablet.
Best error message I was able to coax out was "WinRT originate error".
There are 2 issues and maybe a feature request. The first one causes a hard crash and gives me either "processes is being used by another process" or similar with "access denied"
The second issue only happens in debugging with native code enabled.
The feature request would be an event trigger for when the gif or image finishes loading.
See this video to understand better https://onedrive.live.com/redir?resid=A9B13DE7E292CEE0!1013929&authkey=!AIk36ZAwbISLig8&ithint=video%2cmp4
I ran into another issue and probably the last one ill have. I have noticed that my ram and cpu will skyrocket as i load more gifs even if it's the same gif. ill explain in the video.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.