Skip to content

feat: add support for gif to animated webp and animated webp optimiza… - #78

Merged
bfintal merged 6 commits into
developfrom
feat/76-animated-webp
Sep 18, 2026
Merged

bfintal merged 6 commits into
developfrom
feat/76-animated-webp

Conversation

@Arukuen

@Arukuen Arukuen commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

…tion

fixes #76

Summary by CodeRabbit

  • New Features

    • Animated GIFs are converted to animated WebP while preserving animation timing and transparency.
    • Animated WebP uploads are optimized and remain animated.
    • Animated images can be resized without flattening their frames.
    • GIFs remain in GIF format when WebP conversion would produce a larger file.
  • Documentation

    • Updated conversion guidance to describe animated GIF and WebP handling.
    • Added end-to-end coverage documentation for animated image conversion and transparency preservation.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: e686fab5-18f9-46ee-886d-9fde04a0f2fa

📥 Commits

Reviewing files that changed from the base of the PR and between 0165ff4 and 59e5315.

⛔ Files ignored due to path filters (4)
  • e2e/fixtures/sample-animated-transparent.gif is excluded by !**/*.gif
  • e2e/fixtures/sample-animated.gif is excluded by !**/*.gif
  • e2e/fixtures/sample-still.gif is excluded by !**/*.gif
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (12)
  • docs/prd/conversion-engine.md
  • e2e/fixtures/sample-animated.webp
  • e2e/readme.md
  • e2e/test-utils/index.ts
  • e2e/test-utils/media.ts
  • e2e/tests/animated-webp.spec.ts
  • e2e/tests/quality-and-webp.spec.ts
  • package.json
  • src/shared/converters/animated-image.js
  • src/shared/converters/conversion-engine.md
  • src/shared/converters/image-converter.js
  • webpack.config.js
 ______________________________________________________________________________________________________________________________________________________________________________________________________
< Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. - Brian Kernighan >
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

github-actions Bot added a commit that referenced this pull request Sep 10, 2026
@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown

🤖 Pull request artifacts

file commit
pr78-cimo-78-merge.zip 59e5315

Cover still and animated GIFs, transparent backgrounds, animated WebP re-optimization, and resize without flattening.
github-actions Bot added a commit that referenced this pull request Sep 15, 2026
Keep both the skip-WebP oversized upload test and the animated GIF retention test.
@bfintal
bfintal merged commit a273865 into develop Sep 18, 2026
github-actions Bot added a commit that referenced this pull request Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for animated WebP

2 participants