mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 17:25:35 +03:00
feat(server): consider JpgFromRaw2 tag for embedded previews (#17123)
* add jpgfromraw2 * unused catch
This commit is contained in:
@@ -42,6 +42,9 @@ export class MediaRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async extract(input: string, output: string): Promise<boolean> {
|
async extract(input: string, output: string): Promise<boolean> {
|
||||||
|
try {
|
||||||
|
await exiftool.extractBinaryTag('JpgFromRaw2', input, output);
|
||||||
|
} catch {
|
||||||
try {
|
try {
|
||||||
await exiftool.extractJpgFromRaw(input, output);
|
await exiftool.extractJpgFromRaw(input, output);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@@ -53,6 +56,7 @@ export class MediaRepository {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user