Skip to content

Commit

Permalink
Use exiftool derived fileTypeExtension to determine image file extens…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
nathanielrindlaub committed Oct 31, 2023
1 parent 8e7fb8c commit 22db9fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/buildQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const imageFields = `
cameraId
make
originalFileName
fileTypeExtension
deploymentId
projectId
objects {
Expand Down
2 changes: 1 addition & 1 deletion src/features/images/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const enrichImages = (res, camConfigs) => {
img.deploymentName = deployment;

// build urls for small & medium size images
const ext = img.originalFileName.split('.').pop();
const ext = img.fileTypeExtension;
img.url = IMAGES_URL + 'medium/' + img._id + '-medium.' + ext;
img.thumbUrl = IMAGES_URL + 'small/' + img._id + '-small.' + ext;

Expand Down

0 comments on commit 22db9fa

Please sign in to comment.