Giter Site home page Giter Site logo

sskodje / gifimagesource Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 2.0 5.41 MB

GifImageSource is a Windows Runtime Component for WinRT projects, made for rendering GIF images in a resource efficient way using Direct2D.

License: MIT License

C++ 58.54% C# 41.44% Batchfile 0.02%

gifimagesource's People

Contributors

sskodje avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gifimagesource's Issues

Not handling URIs with a query in the path

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.

To Reproduce:

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.

Multi-View UWP app crashing

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:

  1. Start the App.
  2. Click the button 'Create new view'.
  3. Select the 'New View' from listbox 'Open views'.
  4. Click the button 'Show selected view as standalone'.
  5. Secondary view page appears. You can see the animated gif image.
  6. Close the secondary page. The focus is backed to the main page, then the app halted and crashed.

Mobile-only: Unknown crashes based on app visibility

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".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.