I have a tool in frappe-framework that permits image uploads by checking, the width[=1050px], height[=1500px] and filesize [between 300KB to 3000KB] of an image. Along with the existing requirements I need to add an additional check to permit image upload if PPI = 300. I am able to get the PPI using the EXIF metadata in javascript.
Is there an alternative approach or library I can use to get an image's PPI when it's not present in the EXIF data?