Pages (2): 1 2   
Member
Member
hermor   12-11-2024, 12:27
#1

Hello
When I import images, since version 1.6.4, the metadata "LensInfo" is not read correctly in the exifs of the photo. I searched a little and I noticed that "LensInfo" corresponds to the data 'UndefinedTag:0xA434'.
I replaced "LensInfo" by "UndefinedTag:0xA434" on line 2849 of the file zpcore/functions/functions.php to solve my problem and it is fixed, I get for example "NIKKOR Z 24-70mm f/4 S", I checked for Canon, Sony and Nikon cameras for version 1.6.5 of ZenPhoto.
Herve

Administrator
Administrator
acrylian   12-11-2024, 12:47
#2

I would think the camera sadly does things off the standard not use the correctly named field… Sadly Exif is a loose standard and it can vary sadly. We use the native PHP exif reading since we removed an very old library doing this recently. I am not sure we will start cover such "camera specialities"…

Member
Member
kuzzzma   12-11-2024, 14:50
#3

Canon, Sony and Nikon are not exactly "specialities" though... and it's valuable info for photographers.

I'll test with my images from various cameras for this too, maybe that's done by others too.

Administrator
Administrator
acrylian   12-11-2024, 16:25
#4

""specialities" refers to camera vendors not following the even loose standard of Exif…

The way PHP natively reads and interprets Exif data also depends on the PHP version used.

Member
Member
hermor   12-11-2024, 19:11
#5

I would like to point out that my photos are taken in Raw format and processed by LightRoom to create a Jpeg file placed on my site. It is possible that the Exifs are not integrated in the same way by the different software. My camera is a Canon R7.

Administrator
Administrator
acrylian   12-11-2024, 19:44
#6

Might be. I don't have Lightroom and also no photos in raw format… Is there anything in Lightroom to adjust how metadata is added/transfered perhaps?

Member
Member
hermor   13-11-2024, 10:57
#7

I can choose to export Exifs or not in Jpeg but I cannot act on the content.
The "LensInfo" or "UndefinedTag:0xA434" problem is discussed on many forums.
Thank you, I will keep my correction solution for my photos, it works, that's the main thing.

Administrator
Administrator
fretzl   19-11-2024, 15:23
#8

I can confirm this is happening and opened a ticket for this issue (https://github.com/zenphoto/zenphoto/issues/1479#issue-2672322605)

Please note that UndefinedTag:0xA434 corresponds to LensType and UndefinedTag:0xA432 to LensInfo.
In your example "NIKKOR Z 24-70mm f/4 S" is the LensType (or LensModel) and not LensInfo.

Member
Member
hermor   20-11-2024, 19:07
#9

In my original post, I suggested replacing LensInfo with 'UndefinedTag:0xA434' because for example:
in the old exif reader
with 'LensInfo' i get 'EF70-300mm f/4-5.6L IS USM'
and with 'LensType' i get ''

and in exif_read_data() with
'UndefinedTag:0xA432' i get 'a:4:{i:0;s:4:"70/1";i:1;s:5:"300/1";i:2;s:3:"0/0";i:3;s:3:"0/0";}'
and with
'UndefinedTag:0xA434' i get 'EF70-300mm f/4-5.6L IS USM'

which corresponds well to the old exif reader.

Administrator
Administrator
acrylian   20-11-2024, 19:17
#10

We will add some method to our formatting class that can handle both. The "Off way" with the "undefinedTags" and the way following "standard" named fields. We will post on the ticket if we have something to test in the support build. Might take a few days.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.