Changeset 28bf7f0 in Klonkt for src/routes/admin-audio.js

Timestamp:
06/30/2026 03:26:08 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
28f797d
Parents:
4d1aefb
Message:

fix(editor): animated WebP covers skip the crop editor (were flattened to a static frame)

The post editor's image editor (Cropper.js -> canvas) flattens an animated image to one frame.
Animated GIFs already bypassed it; animated WebP did not, so an animated WebP cover became static.
Detect an animated WebP (VP8X animation flag) client-side and upload it directly, like GIFs —
preserving the animation. Combined with the thumbnail fix, animated covers now move on-site.

  • src/views/pages/post-edit.ejs — isAnimatedWebpFile() + bypass the crop editor for animated WebP

Co-Authored-By: Claude <noreply@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.