Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to read back some GIF files and bring them in Julian World #3

Open
ashwani-rathee opened this issue Jun 4, 2022 · 1 comment

Comments

@ashwani-rathee
Copy link
Collaborator

We want to read back these below shown gif files which are same as used original GIFLIB project and then bring back here as vector of Images. And we want to do it fast and elegantly.

Small Size:

Large Size:

@ashwani-rathee
Copy link
Collaborator Author

https://github.com/ashwani-rathee/GIFImages.jl/tree/ash-testdecode tests correponding here:
This has 33 images * 60*30

(base) ashwani@user:~/Desktop/GSOC/GIFImages.jl$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.2 (2022-02-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.7) pkg> activate .
^[[A  Activating project at `~/Desktop/GSOC/GIFImages.jl`

julia> using GIFImages
[ Info: Precompiling GIFImages [7064036c-d33e-4a25-b247-cf6150d8ad81]

julia> res = gif_decode("test/test-images/fire.gif")
33-element Vector{Any}:
 ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); … ; Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898)]
 ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); … ; Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898)]
 ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); … ; Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898)]
 ⋮
 ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); … ; Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898)]
 ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); … ; Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898)]
 ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); … ; Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898); Gray{N0f8}(0.898) Gray{N0f8}(0.898) … Gray{N0f8}(0.898) Gray{N0f8}(0.898)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant