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;