Skip to main content
Participant
Feb 22, 2021 10:41 AM UTC
Question

Python module unable to read all the metadata

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

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    BarlaeDC
    Community Expert
    Community Expert
    Feb 22, 2021 2:27 PM UTC

    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

    Translate
    csemeonAuthor
    Participant
    Feb 24, 2021 4:59 AM UTC

    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

    Translate
    Legend
    Feb 24, 2021 9:50 AM UTC

    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-,Compatibility,immediately%20follow%20the%20SOI%20marker.

    Translate