Skip to content

Commit

Permalink
Merge pull request #410 from desertwitch/master
Browse files Browse the repository at this point in the history
EXIF rating
  • Loading branch information
bpatrik authored Jan 18, 2022
2 parents 5f6c832 + 55f2748 commit 1d77f09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/model/threading/MetadataLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export class MetadataLoader {
const exif = ExifReader.load(data);
if (exif.Rating) {
metadata.rating = (parseInt(exif.Rating.value, 10) as any);
if(metadata.rating < 0) { metadata.rating = 0; }
}
if (exif.subject && exif.subject.value && exif.subject.value.length > 0) {
if (metadata.keywords === undefined) {
Expand Down

0 comments on commit 1d77f09

Please sign in to comment.