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

Can jpegxl_decode decode multiple frames? #32

Closed
JackKelly opened this issue Feb 11, 2022 · 5 comments
Closed

Can jpegxl_decode decode multiple frames? #32

JackKelly opened this issue Feb 11, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@JackKelly
Copy link

Thanks again for all your work on imagecodecs!

Can jpegxl_decode decode multiple frames?

If I've understood correctly, jpegxl_encode can encode multiple frames (in this loop). But I don't think jpegxl_decode can decode multiple frames yet? Or have I missed something? 🙂

@cgohlke
Copy link
Owner

cgohlke commented Feb 12, 2022

It's on the TODO list:

# TODO: handle animations

There seem to be no API to obtain the number of frames other than decoding all frames and counting...

@cgohlke cgohlke closed this as completed Feb 12, 2022
@JackKelly
Copy link
Author

Cool, thank you!

There seem to be no API to obtain the number of frames other than decoding all frames

To be honest, that's fine for me. For my use-case, I'll always want to decode all the frames. So it would be great to be able to get all the frames back in one call to imagecodecs.

Thanks again for all your work on this!

@cgohlke
Copy link
Owner

cgohlke commented Feb 14, 2022

For reference: Questions about animated sequences.

@cgohlke
Copy link
Owner

cgohlke commented Feb 16, 2022

I got the decoding of JXL animations working with libjxl 0.6. The necessary API for encoding animations will be available in the next major release of libjxl (libjxl/libjxl#909).

@JackKelly
Copy link
Author

Oooh, that's super-cool, thank you!

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

No branches or pull requests

2 participants