Hi,
I have released the entry version of my plugin I have been personally used for a long time with older versions of PWG. It's name is EXIF view (http://phpwebgallery.net/ext/extension_ … ;full_cl=1) and is able to translate EXIF field values to human readable values. Easily extensible with other translations (computer value -> human value) and other languages - now the Czech (UTF-8) and English are supported. Corresponds to EXIF 2.2.
For Czech users - I have prepared the Czech translation (now from 95%) of whole gallery (version 1.7.0), including all help files, installation, admin etc. During translation I found some bugs in PWG related to localization - I should report them on bug tracker/maybe fix them after that and then I can release the whole language pack.
If you have any suggestions to the plugin, don't hesitate to contact me.
I tried to upload the plugin screenshot (PNG 18kb, no spaces...), but unknown error appeared, does anybody know, what's wrong?
Martin
Offline
Can you try with a jpg ? I am not sure how "open" the Extensions manager is about allowed types.
Offline
I've tried the JPG as well (yesterday), but with the same error (unfortunately, I can't understand the error properly, but I guess, that it was something like "general error") :-)
Today it's ok, I have successfully uploaded the EXIF view screenshot in PNG format.
Maybe, random server vagary...
Offline
I made a patch for GPS data, Longitude, Latitude:
Demo:
http://luisrivera.com/123/picture.php?/ … p;metadata
Patch:
http://luisrivera.com/main.inc.rar
you can update your plugin?
Thanks
Offline
Hi "Intel1",
The display for GPS* result is nice but it breaks the metadata synchronization for piwigo_images.latitude and piwigo_images.longitude. rvelices had detected it and I had removed GPS feature from plugin EXIF View in [Subversion] r27136
rvelices, how could we have a display of GPS data without breaking lat/lon sync?
Offline
Best would probably be to save re formatted data into another field
Or find a way to reformat data only for display and not sync
Offline
Maybe an easy (but a bit dirty) solution could be to execute exif_view only if !IN_ADMIN
Offline
plg wrote:
Maybe an easy (but a bit dirty) solution could be to execute exif_view only if !IN_ADMIN
web service also ...
Or you can try and add a priority for event handler NEUTRAL+50 ....
Offline
and is there any way to detect !IN_ADMIN ?
Thanks
Offline
it's a constant
use !defined('IN_ADMIN')
but as revelices said it's not enough because of webservice calls
Offline
And you can disable the plugin EXIF_view before uploading images and then activate it after uploading pictures?
Thanks
Offline
hey guys. i don't know who is the developer of EXIF extension now.
the piwigo config.inc.php support declarations like this:
$conf['show_exif_fields'] = array( 'COMPUTED;ApertureFNumber', 'ModeArray;22', 'ModeArray;34', );
i have try to extend the plugin to check for used lens.
http://www.sno.phy.queensu.ca/~phil/exi … l#LensType
the value seems to be in ModeArray at the position 22 for my Canon 400D, and to position 34 for my Canon 1D mark III.
i have try to add something like this to function exif_key_translation
// Canon lens type if (!(strpos($key, 'ModeArray;34') === FALSE)) { switch ($value) { case 172: return 'Canon EF 400mm f5.6 L USM'; default: return ''; } }
but it is not working. the function exif_translation($exif) don't seem to support parsing composite values.
can you please update the plugin to support composite values (in the same mode like Piwigo config.inc.php) ?
P.S. if anybody wants i can provide a jpg sample
Last edited by eliz82 (2016-05-03 09:25:21)
Offline
I use following exif tag in the config.inc.php array:
'UndefinedTag:0xA434'
It works all cameras and lenses I came across (Sony, Olympus, Panasonic, even iPhone), should work for Canon, too.
Results in Lens names like:
"iPhone 6 back camera 4.15mm f/2.2"
"OLYMPUS M.12-40mm F2.8"
"DT 16-50mm F2.8 SSM"
etc..
There's even a proper translation for it included in piwigo.
Last edited by teekay (2016-05-03 10:06:35)
Offline
Hi :-)
Nice tip teekay! It works fine for my iPhone but not for my Canon 40D :-/
Offline
plg wrote:
Hi :-)
Nice tip teekay! It works fine for my iPhone but not for my Canon 40D :-/
OK. Looking at http://www.sno.phy.queensu.ca/~phil/exi … Canon.html ... what happens if you try it with
'UndefinedTag:0x0095'
(that should be the canon-specific lens model)
Offline