Open
Description
Pigallery2 is using multiple exif, iptc parers (as I could not find one that can do all at once) to get all the metadata for a photo:
-
fs.statSync for silesize, creation date (if i do not find any better from exif)
-
ts-exif-parser
for most of the exif data: -
image-size
to get the photo dimension if 2)ts-exif-parser
fails:
(The image dimension is a must for this app to work properly ) -
ts-node-iptc
for GPS/location, keywords, caption related info: -
exifreader
for faces and now for orientation as this lib parses that properly
This class needs a major refactor. Probably. exifreader
would be able to handle all cases now. Reducing to only one lib, photo indexing would be probably way faster (instead of 4-5 file open, 1 would do the trick)