mirror of
https://github.com/immich-app/immich.git
synced 2025-12-07 01:23:55 +09:00
fix(server): strip metadata from thumbnails (#4438)
included all thumbnail metadata. It seems this has to be explicitly disabled. Refs: #4382 feat. basic metadata e2e test fix: use tiff thumbnails in first step + e2e fix fix: revert switch to tiff feat: test metadata of both webp and jpg feat: use upload in e2e test fix: lint strip metadata with exiftool use `withIccProfile` fix e2e formatting run jobs in e2e
This commit is contained in:
@@ -62,4 +62,18 @@ export const assetApi = {
|
||||
expect(status).toBe(201);
|
||||
return body as AssetFileUploadResponseDto;
|
||||
},
|
||||
getWebpThumbnail: async (server: any, accessToken: string, assetId: string) => {
|
||||
const { body, status } = await request(server)
|
||||
.get(`/asset/thumbnail/${assetId}`)
|
||||
.set('Authorization', `Bearer ${accessToken}`);
|
||||
expect(status).toBe(200);
|
||||
return body;
|
||||
},
|
||||
getJpegThumbnail: async (server: any, accessToken: string, assetId: string) => {
|
||||
const { body, status } = await request(server)
|
||||
.get(`/asset/thumbnail/${assetId}?format=JPEG`)
|
||||
.set('Authorization', `Bearer ${accessToken}`);
|
||||
expect(status).toBe(200);
|
||||
return body;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user