From 5766fcc4972ee1fd6a8e7a4f19a459cee1a58d39 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sun, 26 Jan 2025 08:17:17 -0600 Subject: [PATCH] image response of blob --- api/queries/functions/images.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/queries/functions/images.ts b/api/queries/functions/images.ts index 8bf8796b..edaf0d86 100644 --- a/api/queries/functions/images.ts +++ b/api/queries/functions/images.ts @@ -26,6 +26,8 @@ export async function fetchItemImage( width: width ? Math.ceil(width * 2) : QueryConfig.playerArtwork.width, height: height ? Math.ceil(height * 2) : QueryConfig.playerArtwork.height, format: ImageFormat.Jpg, + }, { + responseType: 'blob' }) .then((response) => { console.debug(URL.createObjectURL(response.data));