Repository navigation
export: write animated GIFs with the shared craft-gif writer (#778) - #3671
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…ests Split the byte-parity check against the former gif 0.13 encoder into its own test, with the reference encode in a helper.
|
|
Thanks @dylanmtaylor! GIF export now goes through the shared |
Take #3671's shared GIF writer (craft-gif) in export. Keep workspace craft-libs pins at 5a7a63a2, which already includes that writer revision.



Part of storytold/craft-libs#778.
Summary
craft_gif::write(AnimationWriter,prepare_frame) instead of using thegifcrate directly.gifstays as a dev-dependency for the round-trip tests.gif_looppicks infinite or no looping, and frames over 65,535 px keep the existingUnsupportederror. Encoder errors fromprepare_frameandfinishare now reported instead of being dropped.craft-gifis pinned to948b5c23on craft-libs main.Tests
gif_roundtripalso checks looping and disposal.gif_matches_the_former_encoder_byte_for_bytere-encodes the same rendered frames through the former gif 0.13 path and requires identical bytes.gif_rgba_keeps_background_disposal_and_non_loopingcovers the RGBA and non-looping path.gif_dimension_limit_keeps_the_existing_unsupported_error.cargo test -p effectcraft-export gifpasses.Summary by CodeRabbit