Hi,
I have observed a few issues with Exif parsing & showing. Sorry, if that has already been discussed previously but I didn't find anything...
- other progs (e.g. ExitToolGUI) are showing the exif info correctly without error messages
- latitude in table images is "-99.999999" for all images; longitude seems to be fine, e.g. "0.184099"
- local config is
$conf['show_exif_fields'] = array(
'Make',
'Model',
'DateTimeOriginal',
'FNumber',
'ExposureBiasValue',
'FILE;FileSize',
'ExposureTime',
'ISOSpeedRatings',
'FocalLength',
'ExposureMode',
'MeteringMode',
'ExposureProgram',
);
- Values seem to be "shifted" in piwigo as compered to exiftool, e.g. "Make" shows the value from "Software" and so on (see screenshots)
- Error message when viewing pictures (not always): Warning: strip_tags() expects parameter 1 to be string, array given in /homepages/33/d23615136/htdocs/piwigo/include/functions_metadata.inc.php on line 205
Any tips?
Thanks,
Thomas
Piwigo version:
PHP version: 2.74
MySQL version: 5.5.30
Piwigo URL: http://www.feuster.com/piwigo
Last edited by TheDoc (2015-10-18 20:27:35)
Offline
Bump :-)
I have found a discussion about how exif makernotes can break php's exif_read_data:
http://u88.n24.queensu.ca/exiftool/foru … 8ktnjfsqi7
So I'll try the solution from there.
In case it doesn't work: How are lat and lon calculated from the exif values? Are they simply
1) hours + minutes/60 +seconds/3600
2) sign based on N/S and E/W
or something more sophisticated?
Thanks,
Thomas
Offline
TheDoc wrote:
In case it doesn't work: How are lat and lon calculated from the exif values? Are they simply
1) hours + minutes/60 +seconds/3600
2) sign based on N/S and E/W
or something more sophisticated?
[Github] Piwigo file include/functions_metadata.inc.php@L213-L239
Offline
Would it be possible to replace the php exif function by something that actually works????????
- Removed makernotes with exiftool: 17 of 22 images now OK
- Removing xmp, makernotes, iptc with exiftool: piwigo hangs when trying to resync with only exif block
- Remaining images don't have makernotes or xmp - so I would need to check each attribute to find the one that breaks php???
Wouldn't it be possible to switch to exiftool and retire the php function? Since I can't code in php I could only offer my support as tester...
Offline
This would be nice... so much metadata is missing as a result of using the php function...
Does anyone know why the advancedmetadata plugin is not compatible anymore?
Wonder how hard it would be to intercept the exif reading and replace it with exiftool or something?
Offline
Using exiftool would be nice BUT it would also means that many hosting won't be compatible: exiftool is not installed everywhere :-/
Offline
I'm not sure why depending on exiftool would be such an issue? I know a view other pieces of (commercial) software that do so... AND I think that once a perfectly fine, well documented, well maintained piece of software exists we shouldn't try to re-invent the wheel ourselves.
There was at least one attempt so far to use exiftool out of php: https://github.com/romainneutron/PHPExiftool - so it shouldn't be an impossible task.
Last edited by TheDoc (2015-10-25 12:05:19)
Offline
exactly what plg said: exiftool is not available everywhere, actually it's almost never available on shared hosts
Offline
For once I - as a simple windows user - am better off :-) No install required, simply ship the exiftool.exe with your application...
Last edited by TheDoc (2015-10-25 12:22:50)
Offline
Or simply make it an option if exiftool is available, then allow piwigo to use it instead...
(This is the behavior of many gallery type software I've used previously)
Offline
So double the developement ?
I think we will stick with one and only one library.
Offline
mistic100 wrote:
So double the developement ?
I think we will stick with one and only one library.
That's too bad. Do you think the capabilities of hooking this up via an extension are possible? If you believe that the extension capabilities are good enough to do so, I think that would be a via alternative then.
-note- I've also hacked in the exiftool capability in to the functions_metadata.inc.php pretty easily. It was fairly easy with about 10 lines of code changes (mostly because I'm not a programmer!). So, from what I could gather, it's not that big of challenge.
Last edited by jnashpiwigo (2015-10-25 19:20:24)
Offline
What is too bad ? seriously I don't understand the whole point here....
I said in my ticket on Github (did you read it ?) that I would like to use PEL, which seems to do everything.
So what's the problem ?
Offline