From d5111017a32a3a83ef81d6a54f05070aa5500a45 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 26 Nov 2025 18:43:22 -0600 Subject: [PATCH] fix gif saving mroe --- src/webpage/favorites.ts | 4 +++- src/webpage/jsontypes.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webpage/favorites.ts b/src/webpage/favorites.ts index 0c1799c..207e035 100644 --- a/src/webpage/favorites.ts +++ b/src/webpage/favorites.ts @@ -431,7 +431,9 @@ export class Favorites { ) { this.gifs[name] = { ...gif, - format: 1, + width: Math.round(gif.width), + height: Math.round(gif.height), + format: "GIF_TYPE_IMAGE", order: Object.keys(this.gifs).length + 1, }; await this.save(saveImportance.high); diff --git a/src/webpage/jsontypes.ts b/src/webpage/jsontypes.ts index 9acc057..12bf332 100644 --- a/src/webpage/jsontypes.ts +++ b/src/webpage/jsontypes.ts @@ -149,7 +149,7 @@ export interface favandfreq { favoriteGifs: { gifs: { [key: string]: { - format: 1; + format: "GIF_TYPE_IMAGE"; src: string; width: number; height: number;