JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

Better metadata support #90

Open Elfangor93 opened 1 year ago

Elfangor93 commented 1 year ago

It would be huge if JoomGallery could add better support for image metadata. Currently JoomGallery uses the built in function exif_read_data() and iptcparse(https://www.php.net/manual/en/function.iptcparse.php) from the GD library to read metadata. In most of the cases this is good enough.

But with an external tool we could improve the functionality and compatibility of metadata handling like we do with the external tool ImageMagick for image manipulation. Advantage: More functionality. Disadvantage: Tool has to be installed on the server.

One of the two tools I could think of using:

Does anyone would have time to test these two tools?

AlexanderSupp commented 1 year ago

I use https://exiftool.org/ by Phil Harvey to control all things around EXIF & Co. It's easy to install on Windows and Mac. I also use it with WampServer. It's part of my provider environment, as a standard when ImageMagick also is available. It's installed on my both Synology-Machines. ExifTool by Phil Harvey is the most used tool for Metadata Management. In addition, there is a graphical user interface ExifToolGUI for easy use. https://www.computerbild.de/download/ExifToolGUI-3329098.html https://www.heise.de/download/product/exiftoolgui-63032

Screenshot 2023-04-05 113805

To control Metadata, a tool called Exif Pilot is also useful. https://www.colorpilot.com/exif.html

I have no experience with The PHP JPEG Metadata Toolkit. But I remember an image viewer with this layout. I try to find out more.

AlexanderSupp commented 1 year ago

More Information: Extract EXIF data as text using ImageMagick - Stack Overflow https://stackoverflow.com/questions/26654709/extract-exif-data-as-text-using-imagemagick

ImageMagick, Exiftran, Exiftool & Co - Bildverarbeitung mit der Kommandozeile [unixwitch] https://www.unixwitch.de/de/sysadmin/tools/imagemagick

imagemagick exif - Google Suche https://www.google.com/search?q=imagemagick+exif&oq=imagemagick+ex&aqs=chrome.2.69i57j0i512l7j0i22i30l7.28331j0j16&client=ms-android-samsung-gs-rev1&sourceid=chrome-mobile&ie=UTF-8

AlexanderSupp commented 1 year ago

I took a look at https://www.ozhiker.com/electronics/pjmt/ Doesn't inspire confidence in me. Last changes at least 8 years ago. Haven't found any information about the use.

I prefer the usage of ExifTool.

AlexanderSupp commented 1 year ago

Now I'm sure that ExifTool is the best choice.

See https://www.linux-magazin.de/news/digikam-7-3-holt-exiftool-an-bord/ _"DigiKam 7.3 holt ExifTool an Bord Von Ulrich Bantle - 15. Juli 2021

Mit der Version 7.3 des digitalen Photomanagers Digikam unterstützen die Entwickler nun offiziell das ExifTool zum managen der Metadaten. Die Entwickler versprechen sich dadurch gegenüber dem bisher verwendeten Exiv2 diverse Vorteile.

Hervorgehoben sind in dieser Hinsicht in der Ankündigung das Fixen von Sonderfällen bei den Metadaten, die bei Exiv2 zu Funktionsstörungen geführt hätten. ExifTool unterstütze zudem eine größere Liste von Dateiformaten als Exiv2. Die Entwickler haben zur Einbindung einen ExifTool-Metadaten-Viewer in DigiKam an die Metadaten-Seitenleiste angehängt. Die Ansicht funktioniere genau wie die Exiv2-Version, einschließlich des Filters für die Metadateneinträge, heißt es in der Ankündigung."_

Elfangor93 commented 1 year ago

Interesting to know if we choose ExifTool: https://exiftool.org/forum/index.php?topic=7015.0

The hoster needs to allow you to run CGI scripts. If that is the case you can use ExifTool.

AlexanderSupp commented 1 year ago

Should PHP run as a CGI script or as an Apache module? https://docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F

"it has been quite common for hosting firms to configure for both."

AlexanderSupp commented 1 year ago

Example: https://www.dmsolutions.de/joomla-webhosting.html 3,99 € - monthly includes also Screenshot 2023-04-07 172301 Screenshot 2023-04-07 172208

AlexanderSupp commented 1 year ago

See also http://joomgallery4.fotofreunde-much.de/en/rules-en/60-photo-meta-data-exif-iptc-iim-co