Hello/Hi/Greetings,
I like to have my camera and lens info listed with my photos. I have exif view going and the local files editor going with this config:
$conf['show_exif_fields'] = array(
'Model',
'UndefinedTag:0xA434',
'DateTimeOriginal',
'FNumber',
'ExposureBiasValue',
'ExposureTime',
'ISOSpeedRatings',
'FocalLength',
'FocalLengthIn35mmFilm',
'SubjectDistance',
'ExposureMode',
'MeteringMode',
'ExposureProgram',
'Software',
This works with my Pentax cameras and lenses, using exif tool to populate lens info from maker notes or manually when I need to. It's the 'UndefinedTag:0xA434' that makes it work to show lens model info.
I just got a Olympus EM10 MII MFT camera and find that it doesn't show the lens info on Piwigo, even though it's in the same exif field as with my Pentax cameras. I've tried a bunch of stuff to get it to work with no success yet. Even if I remove the lens model info using exiftool and add it back, it still won't show on piwigo. Any suggestions?
Piwigo 2.9.3
Operating system: Linux
PHP: 5.3.29 (Show info) [2018-03-02 18:07:15]
MySQL: 5.5.5-10.0.34-MariaDB-cll-lve [2018-03-02 18:07:15]
Graphics Library: External ImageMagick 6.7.2-7
Piwigo URL: http://www.tmphillips.com/pg
Offline
http://piwigo.org/forum/viewtopic.php?id=26580
What's interesting is that 'tools/metadata.php' is able to read lens info, but '/admin/include/functions_metadata.php' is not. It seems that there's opportunity for improvement there.
Last edited by executive (2018-03-03 06:03:46)
Offline
executive wrote:
http://piwigo.org/forum/viewtopic.php?id=26580
What's interesting is that 'tools/metadata.php' is able to read lens info, but '/admin/include/functions_metadata.php' is not. It seems that there's opportunity for improvement there.
Thanks i had skimmed that article before but didn't catch the part about doing the sample check...
So I did the sample.jpg test at the metadata.php and it doesn't show any lens info in the Olympus jpeg exif, but I can check the jpeg in other apps and it's there under Lens Model.
I did the sample.jpg using a Pentax file and it was very messy in metadata.php, but my added lens info is at the very bottom at [UndefinedTag:0xA434] =>
Is there a trick that I didn't catch yet from that article?
Offline
I have the same camera as you, and it shows my lens ...
https://mountainmanjoe.ca/gallery/tools/sample.jpg
https://mountainmanjoe.ca/gallery/tools/metadata.php
But I have PHP 5.6. Maybe try upgrading that.
Last edited by executive (2018-03-03 09:31:31)
Offline
executive wrote:
I have the same camera as you, and it shows my lens ...
https://mountainmanjoe.ca/gallery/tools/sample.jpg
https://mountainmanjoe.ca/gallery/tools/metadata.php
But I have PHP 5.6. Maybe try upgrading that.
If you could do me a favor, it'd be greatly appreciated, and that would be to drop this attached sample file onto your server temporarily just to see if shows the lens tag or not.. It's definitely in the exif.. I completely understand if this is too much to ask and you choose to ignore me haha...
This way it would point me in the right direction knowing that php or some difference in piwigo config could make the difference versus something I could do to tweak the exif..
Offline
No problem
http://gallery.mountainmanjoe.ca/tools/metadata.php (I can see the lens at the bottom)
How do you like the Oly 9-18?
It's a great shot. You should try to get rid of the halo around the roof.
Offline
executive wrote:
No problem
http://gallery.mountainmanjoe.ca/tools/metadata.php (I can see the lens at the bottom)
How do you like the Oly 9-18?
It's a great shot. You should try to get rid of the halo around the roof.
Well there you have it! Has to either be something different how you have Piwigo set up, or php as you noted. Thanks for doing the sample for me.
So far I like the 9-18 but haven't been out of the back yard with it yet. That and the 40-150 R are the only lenses I have so far. Got the 9-18 used in great shape for only $190 US.
Thanks about the shot.. Just first test shots learning the camera... I saw that halo but didn't care for just a quick process job on a back yard test shot.. Was intentionally pushing thing to see the differences in latitude from what I am used to with my FF dslr.
Offline
That's a great price.
Last edited by executive (2018-03-04 03:43:23)
Offline
executive wrote:
That's a great price.
Switched to PHP 5.6 and it fixed it. ;) thanks again for your help.
Offline
Glad to hear it :)
Would love to see your gallery when it's ready.
Offline
LensName at address A434 as string is something introduced in CIPA exif specifications v2.3 and appeared in cameras and software starting with 2012. Before that every producer had a different a complicated way of putting some kind of lensinfo in the exif.
It's normal PHP 5.3 is not able to read that, it's probably released before 2012.
Offline