Hi,
I'm a happy Piwigo user since 2017, running it on my own local LAMP server (PC running Ubuntu server).
A nice feature is the possibility to read EXIF data using some plugins.
But now I want to go one step further, trying to solve an issue I discovered.
When a picture is taken using a long exposure time (30sec), the reported time is wrong (1/0s)
Being a programmer I want to try to fix the issue myself.
Therefore I have copied my Piwigo onto a Raspberry Pi 3 Model B+ to experiment.
So I am looking for info on how to setup Piwigo for debugging on the Raspberry Pi.
My question is where can I find info on how to:
Enable traces to log internal info if these are available in the code.
Adding my own traces.
Prepare a fix for review and delivery.
...
Thanks
Erik Umans
email: erik.umans@skynet.be
Piwigo 2.9.4
Operating system: Linux
PHP: 5.5.9-1ubuntu4.26 (Show info) [2019-03-05 16:33:49]
MySQL: 5.5.62-0ubuntu0.14.04.1 [2019-03-05 16:33:49]
Graphics Library: ImageMagick 6.7.7-10
Piwigo URL: http://umecent.dyndns.org/piwigo/pictur … category/3
Offline
I believe Piwigo uses external images libraries to retrieve exif data. Not sure if any conversion happens after that, but it's possible your issue has nothing to do with Piwigo, but rather with GD or IM.
If there is a bug in Piwigo, you can start by searching if it has already been reported.
Otherwise, log a new issue on github.
https://github.com/Piwigo/Piwigo
If you want to contribute to the code, I think the standard procedure is to submit a pull request.
Offline
I have issues too, reading EXIF data from certain files. The problems have been related to the internal PHP exif_read_data function, which has a number of known issues. At least in PHP7.2.x.
[url]https://bugs.php.net/search.php?cmd=display&package_name[]=EXIF+related[/url]
The Apache error_log would contain details of the errors when they occurred (for debugging).
The alternative is to use an external (i.e. non-PHP) library. I use Exiftool - but with a huge drawback - performance!
Also an option is to use the GPS Plugin, and modify it to read the EXIF data you need.
https://piwigo.org/ext/extension_view.php?eid=858
Last edited by miblo69 (2019-03-26 14:12:06)
Offline
[extension by maple] EXIF View
Revision 2.9.a
* Wrong exposure time, "30/1" becomes "1/0s"
Last edited by executive (2019-03-26 21:49:01)
Offline