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

GIF delay to load first frame #649

Closed
abinhho opened this issue Dec 29, 2022 · 1 comment
Closed

GIF delay to load first frame #649

abinhho opened this issue Dec 29, 2022 · 1 comment
Labels

Comments

@abinhho
Copy link

abinhho commented Dec 29, 2022

I have a gif image gif have delay between frames is 1 second. I saw this gif image load a black frame then after 1 second first frame image will be loaded.

I test on a faster delay gif and it works as normal. Please see video below.

GIF Information
---------------
GIF size: 468,655 bytes (457.67kb)
GIF length: 5 second(s)
GIF width/height: 480×480 pixels
number of frames: 5
number of colors: 256
loop count: 0 (endless)
RPReplay_Final1672304361.mov
@kean kean added the bug label Feb 5, 2023
@kean
Copy link
Owner

kean commented Feb 5, 2023

Nuke doesn't use file extensions to determine images types. It relies on magic numbers. It does recognize the image type correctly, but for some reason, it fails to play the GIF correctly.

As a workaround, I suggest disabling GIF rendering (currently enabled by default in Nuke 11, but I'm reevaluating this decision for Nuke 12).

LazyImage(url: URL(string: "https://i.imgur.com/5TjxopD.png"))
    .onCreated { $0.isAnimatedImageRenderingEnabled = false  }
    .frame(width: 120, height: 120)

GIF rendering is handled by Gifu. I would suggest opening an issue in the original repo.

@kean kean closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants