1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-10 04:07:35 +02:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Patrik J. Braun 2022-01-18 20:38:31 +01:00
commit a4a9fe2c98

View File

@ -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) {