Skip to content

Commit

Permalink
Update convert-image.ts (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
SPAHI4 authored Mar 10, 2024
1 parent 17f6070 commit bfd88cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/src/tasks/convert-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,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');
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 bfd88cb

Please sign in to comment.