Skip to content

Commit b691290

Browse files
committed
fix: Animate avatars/icons that's using the .webp file format
As you may of known, WebP can also be animated and provides some advantages, like having a smaller file sizes over GIF. Though, the point is that WebP can be animated, and so—it should have the same effect as normal GIFs - it having the loop animation than it just being static. Signed-off-by: xanners <xxdr@duck.com>
1 parent b2a49fa commit b691290

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/classes/File.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class File {
117117
if (!autumn?.enabled) return;
118118

119119
let query = "";
120-
if (forceAnimation && this.contentType === "image/gif") {
120+
if (forceAnimation && (this.contentType === "image/gif" || this.contentType === "image/webp")) {
121121
query = "/original";
122122
}
123123

0 commit comments

Comments
 (0)