Closed Bug 2033688 Opened 28 days ago Closed 21 days ago

jxl finite animated images should loop the correct number of times

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

On the ImageDecoder interface repetitionCount being 0 mean one total play through, see https://github.com/w3c/webcodecs/issues/932

On the jpeg xl side, num_loops being 0 means to loop infinitely https://github.com/libjxl/libjxl/blob/6553831b39a542d6450e76ca5afb64520649d838/lib/jxl/headers.h#L87 and then I confirmed with Jon Sneyers that num_loops being 1 means to have one total play through. (If num_loops being 1 meant two total play throughs then there would be no way to specify one total play through, so that is good.)

There doesn't appear to be any tools that can make finitely looping animated jxl files at this time, so a c file using libjxl was created to create them.

Pushed by tnikkel@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9b483322456c https://hg.mozilla.org/integration/autoland/rev/f2f6097a1f4d Finite length animated jxl images should loop the correct number of times. r=saschanaz

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59513 for changes under testing/web-platform/tests

Status: NEW → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Regressions: 2035456

Upstream PR merged by moz-wptsync-bot

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: