• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Python module unable to read all the metadata

New Here ,
Feb 22, 2021 Feb 22, 2021

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

Views

193

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2021 Feb 22, 2021

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 23, 2021 Feb 23, 2021

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

LATEST

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-....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines