mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
commit
1d77f09ba1
@ -221,6 +221,7 @@ export class MetadataLoader {
|
|||||||
const exif = ExifReader.load(data);
|
const exif = ExifReader.load(data);
|
||||||
if (exif.Rating) {
|
if (exif.Rating) {
|
||||||
metadata.rating = (parseInt(exif.Rating.value, 10) as any);
|
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 (exif.subject && exif.subject.value && exif.subject.value.length > 0) {
|
||||||
if (metadata.keywords === undefined) {
|
if (metadata.keywords === undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user