Skip to content

Commit

Permalink
fixed hdr detect
Browse files Browse the repository at this point in the history
  • Loading branch information
SPAHI4 committed Mar 31, 2024
1 parent b0cc00c commit 311f5f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions worker/src/tasks/convert-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ type DbImage = {

// @see https://github.com/MikeKovarik/exifr/issues/115
export const detectHdr = (contentType: string, exifData: ExifData) =>
contentType === 'image/avif' &&
typeof exifData.Software === 'string';
// exifData.Software.startsWith('Adobe Photoshop Camera Raw 15');
contentType === 'image/avif' && typeof exifData.Software === 'string';
// exifData.Software.startsWith('Adobe Photoshop Camera Raw 15');

export const getExifData = (filePath: string) =>
exifr.parse(filePath, {
Expand Down

0 comments on commit 311f5f4

Please sign in to comment.