Copy link to clipboard
Copied
Hello,
I just to be pointed in the right direction.
Bit of context, I am coding a simple plugin for a 3D app in python. The plugin also gathers image DPIs for scale.
The issue, I am having, is that I can gather metadata from all formats EXCEPT jpegs specifically saved with Photoshop. I need to batch re-save the images in another app to have access to information I need.
I can see the correct info with FILE INFO in Photoshop but not with external python module.Does anyone know the right module I need to get all the metadata?
Thanks
Copy link to clipboard
Copied
Hi,
I don't know about the module you are talking about, but I would start here if I wanted to work with MetaData from any of the Adobe Apps.
Malcolm
Copy link to clipboard
Copied
Hi Malcolm,
Thanks for the reply.
Looking through the Adobe documentation. (Not an expert here) I think the python modules "exif 1.2.0" (https://pypi.org/project/exif/) cannot gather the information I need.
When I receive jpegs from non-Adobe application, my python setup works. But with Adobe, I have limited information.
I found that Adobe uses TIFF metadata "not only for TIFF images". The python modules are looking for EXIF.XResolution but I need to check for TIFF.XResolution also.
Is there a python module to read TIFF metadata in JPEGs?
Charles
Copy link to clipboard
Copied
There are two different JPEG metadata containers, EXIF and JFIF. Many files contain elements from both, but you need to handle both formats. I use JPEGLib to parse JPEG files. I cannot suggest any Python solution, that's not my area. https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format#:~:text=Xthumbnail%20%C3%97%20Ythumbnail-....