Announcement

#1 2007-08-02 12:39:02

maple
Member
Prague
2007-05-24
5

EXIF view 0.1 released

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

 

#2 2007-08-03 00:31:42

mathiasm
Former Piwigo Team
2006-02-06
2648

Re: EXIF view 0.1 released

Can you try with a jpg ? I am not sure how "open" the Extensions manager is about allowed types.

Offline

 

#3 2007-08-03 15:19:56

maple
Member
Prague
2007-05-24
5

Re: EXIF view 0.1 released

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

 

#4 2014-06-17 00:31:23

Intel1
Member
2014-06-16
7

Re: EXIF view 0.1 released

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

 

#5 2014-06-20 11:20:18

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13192

Re: EXIF view 0.1 released

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

 

#6 2014-06-20 11:53:26

rvelices
Piwigo Team
2005-12-29
1960

Re: EXIF view 0.1 released

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

 

#7 2014-06-20 13:16:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13192

Re: EXIF view 0.1 released

Maybe an easy (but a bit dirty) solution could be to execute exif_view only if !IN_ADMIN

Offline

 

#8 2014-06-20 14:12:11

rvelices
Piwigo Team
2005-12-29
1960

Re: EXIF view 0.1 released

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

 

#9 2014-06-20 18:26:08

Intel1
Member
2014-06-16
7

Re: EXIF view 0.1 released

and is there any way to detect !IN_ADMIN ?

Thanks

Offline

 

#10 2014-06-20 18:27:23

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: EXIF view 0.1 released

it's a constant

use !defined('IN_ADMIN')

but as revelices said it's not enough because of webservice calls

Offline

 

#11 2014-06-22 19:04:19

Intel1
Member
2014-06-16
7

Re: EXIF view 0.1 released

And you can disable the plugin EXIF_view before uploading images and then activate it after uploading pictures?

Thanks

Offline

 

#12 2016-05-03 09:22:39

eliz82
Member
Romania
2016-04-27
250

Re: EXIF view 0.1 released

hey guys. i don't know who is the developer of EXIF extension now.
the piwigo config.inc.php support declarations like this:

Code:

$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

Code:

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

 

#13 2016-05-03 10:03:27

teekay
Member
2013-06-12
407

Re: EXIF view 0.1 released

I use following exif tag in the config.inc.php array:

Code:

'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

 

#14 2016-05-03 10:16:28

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13192

Re: EXIF view 0.1 released

Hi :-)

Nice tip teekay! It works fine for my iPhone but not for my Canon 40D :-/

Offline

 

#15 2016-05-03 11:23:26

teekay
Member
2013-06-12
407

Re: EXIF view 0.1 released

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

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact