Repository navigation
Full Pipeline: fix losing an animation when a 0-byte .webp was left behind - #7
Merged
Merged
Conversation
…write Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Full Pipeline could lose an animation when a 0-byte
.webpsat next to its animated.avif, which a force-killed run can leave behind.Both engines took the pair. The animated engine converts the
.avifinto that.webpand deletes the.avif. The image engine had queued the same.webpwhile it was still empty, so it wasn't recognized as animated. If its turn came after the animated conversion, it turned the first frame into a still.jxland deleted the.webp, and the chapter was zipped with only the still. In other orders the image job failed and the chapter was left unzipped, or the two engines hit a file lock (the cause of a flaky test failure in CI).The same could happen with Overwrite on, when a static
.webpshares its name with an animated.avif.Fix: when animated conversion is on, the image engine leaves a
.webpalone if the chapter has an animated.avifof the same name. It's the animated engine's output file.Behavior change: with Overwrite off, a chapter holding a static
.webpand an animated.avifof the same name is now left unzipped with both files in place, like any other.avif/.webppair. Before, the.webpwas converted to.jxland the.avifwas zipped unconverted. The README's wording covers this now.Tests:
.webp, and also checks that the pair isn't zipped..webpat 8 slots: before, 8 lost the animation and 4 weren't zipped; after, all 48 zipped with the animation. 15 chapters at 1, 2 and 4 slots were also all fine after.🤖 Generated with Claude Code