I am trying to retrieve EXIF data of an image from which I want to extract GPS related information i.e., Latitude and logitude. So far I have tried atleast 4-5 EXIF packages available in npm/node - exif, exif-parser, node-exif, exifr, exif-js and other 2-3 but didn't get any solid results. Most of them only supported one file type (only JPG or only PNG). I got my best results with eixfr - I was able to extract data of the first image(regardless of extension),but after that when I tried it with the second image it crashed (happened everytime).
So is there any npm package with which I can retrieve EXIF data of multiple images with different extensions (atleast PNG, JPG , JPEG)?