feat: use jpg for system notifications

This commit is contained in:
Zamitto
2025-11-12 08:17:53 -03:00
parent f84917a00b
commit c2216bbf95
5 changed files with 17 additions and 12 deletions

View File

@@ -5,15 +5,15 @@ const processProfileImageEvent = async (
_event: Electron.IpcMainInvokeEvent,
path: string
) => {
return processProfileImage(path);
return processProfileImage(path, "webp");
};
export const processProfileImage = async (path: string) => {
export const processProfileImage = async (path: string, extension?: string) => {
return PythonRPC.rpc
.post<{
imagePath: string;
mimeType: string;
}>("/profile-image", { image_path: path })
}>("/profile-image", { image_path: path, target_extension: extension })
.then((response) => response.data);
};