[metadata] Exif support when host doesn't support (via PJMT) #337

Open
opened 2026-10-04 23:52:51 +02:00 by adam · 7 comments
Owner

Reported by BeSt on 13 Jun 2006 12:35

Hi,
(en francais après)

I use PWG 1.5 (which is very good !!) on a free web hoster which doesn't support exif data. No free web hoster support it in France, and my hoster doesn't want to change this.
But I found PJMT : PHP Metadata Toolkit http://www.ozhiker.com/electronics/pjmt/ And I managed to integrate it in PWG 1.5 (but only for my camera). Since I am a newbie in PHP (never edited it before), I surely did many mistakes. You can visit my gallery here http://membres.lycos.fr/bestbest/galerie/ and try my integration.

Can you integrate it in PWG (not 1.6 but maybe 1.7), in a better, optimized way ?

J'utilise PWG 1.5 qui est très bien sur Multimania, qui ne supporte pas l'exif, comme tous les hosts en France. J'ai néanmoins réussi à intégrer PJMT http://www.ozhiker.com/electronics/pjmt/ mais seulement pour mon appareil photo. COmme j'avais jamais touché de PHP avant, j'ai sûrement fait de la m**** . Ma galerie est ici http://membres.lycos.fr/bestbest/galerie/ : c'est fonctionnel.

Peut-être pouvez vous intégrer PJMT dans PWG d'une meilleure façon ? Cela rendrait service à beaucoup de gens .. (ou alors le distribuer sous forme d'extension)

Sinon, ne serait-pas possible de supporter l'envoi de photos sans passer par le FTP ? A la manière d'un concurrent, pour ne pas citer zenphoto (qui est buggé, pour ce que j'ai testé)
Merci

Piwigo Bugtracker #417

**Reported by BeSt on 13 Jun 2006 12:35** Hi, (en francais après) I use PWG 1.5 (which is very good !!) on a free web hoster which doesn&#039;t support exif data. No free web hoster support it in France, and my hoster doesn&#039;t want to change this. But I found PJMT : PHP Metadata Toolkit http://www.ozhiker.com/electronics/pjmt/ And I managed to integrate it in PWG 1.5 (but only for my camera). Since I am a newbie in PHP (never edited it before), I surely did many mistakes. You can visit my gallery here http://membres.lycos.fr/bestbest/galerie/ and try my integration. Can you integrate it in PWG (not 1.6 but maybe 1.7), in a better, optimized way ? J&#039;utilise PWG 1.5 qui est très bien sur Multimania, qui ne supporte pas l&#039;exif, comme tous les hosts en France. J&#039;ai néanmoins réussi à intégrer PJMT http://www.ozhiker.com/electronics/pjmt/ mais seulement pour mon appareil photo. COmme j&#039;avais jamais touché de PHP avant, j&#039;ai sûrement fait de la m***\* . Ma galerie est ici http://membres.lycos.fr/bestbest/galerie/ : c&#039;est fonctionnel. Peut-être pouvez vous intégrer PJMT dans PWG d&#039;une meilleure façon ? Cela rendrait service à beaucoup de gens .. (ou alors le distribuer sous forme d&#039;extension) Sinon, ne serait-pas possible de supporter l&#039;envoi de photos sans passer par le FTP ? A la manière d&#039;un concurrent, pour ne pas citer zenphoto (qui est buggé, pour ce que j&#039;ai testé) Merci [Piwigo Bugtracker #417](http://piwigo.org/bugs/view.php?id=417) <!-- github-sync-id:97254105 -->
Author
Owner

Comment posted by plg on 13 Jun 2006 14:36

How complex is your PHP code using PJMT compared to PhpWebGallery code using standard metdata library?

**Comment posted by plg on 13 Jun 2006 14:36** How complex is your PHP code using PJMT compared to PhpWebGallery code using standard metdata library? <!-- github-comment-id:124888705 -->
Author
Owner

Comment posted by BeSt on 13 Jun 2006 14:48

My code is surely more complex than PWG using standard library, but it can give more information (or I forgot smthg) :
I can have ,with my code, the focal distance, ISO, speed, aperture, ... informations that are not read by PWG (with the standard library, it can only give the size, date of the photo, can't it ?)
I repeat that my web server hasn't enabled exif support in php, and I tried to read exif informations ...

Sorry for my English

**Comment posted by BeSt on 13 Jun 2006 14:48** My code is surely more complex than PWG using standard library, but it can give more information (or I forgot smthg) : I can have ,with my code, the focal distance, ISO, speed, aperture, ... informations that are not read by PWG (with the standard library, it can only give the size, date of the photo, can&#039;t it ?) I repeat that my web server hasn&#039;t enabled exif support in php, and I tried to read exif informations ... Sorry for my English <!-- github-comment-id:124888710 -->
Author
Owner

Comment posted by BeSt on 13 Jun 2006 14:50

En français, puisqu'apparemment tu es francais,
mon code est surement moche , mais il permet de lire les info EXIF même si le serveur n'a pas activé cette option lors de la compilation du PHP (et c'est assez fréquent !). Alors que PWG par défaut ne peut lire que la date, la taille de l'image, et autres info mineures ..

Merci

**Comment posted by BeSt on 13 Jun 2006 14:50** En français, puisqu&#039;apparemment tu es francais, mon code est surement moche , mais il permet de lire les info EXIF même si le serveur n&#039;a pas activé cette option lors de la compilation du PHP (et c&#039;est assez fréquent !). Alors que PWG par défaut ne peut lire que la date, la taille de l&#039;image, et autres info mineures .. Merci <!-- github-comment-id:124888714 -->
Author
Owner

Comment posted by plg on 13 Jun 2006 15:13

(soit on cause français, soit on cause anglais... je veux bien continuer en français, mais je préfère l'anglais)

BeSt said:
> I can have ,with my code, the focal distance, ISO,
> speed, aperture, ... informations that are not read by
> PWG

You can choose the metadata to read in the configuration file. Everything available in the EXIF metadata set is readable by PWG.

The problem is that standard EXIF library is not enabled everywhere while you can install PJMT everywhere. My concern is the complexity of the resulting code.

**Comment posted by plg on 13 Jun 2006 15:13** (soit on cause français, soit on cause anglais... je veux bien continuer en français, mais je préfère l&#039;anglais) BeSt said: &gt; I can have ,with my code, the focal distance, ISO, &gt; speed, aperture, ... informations that are not read by &gt; PWG You can choose the metadata to read in the configuration file. Everything available in the EXIF metadata set is readable by PWG. The problem is that standard EXIF library is not enabled everywhere while you can install PJMT everywhere. My concern is the complexity of the resulting code. <!-- github-comment-id:124888721 -->
Author
Owner

Comment posted by BeSt on 13 Jun 2006 18:42

> The problem is that standard EXIF library is not enabled everywhere while you
> can install PJMT everywhere.
Yes that's the problem

> My concern is the complexity of the resulting code.
The resulting code may be complex, but no so hard to implement in the existing code. And I think it's better to have a slow code than no code for this feature.
You can test on my gallery, it's not so slow ..

And I think this option as the last solution to read exif metadata (option not enabled by default, big warning when you enable it 'BE careful, this may slow your server')

**Comment posted by BeSt on 13 Jun 2006 18:42** &gt; The problem is that standard EXIF library is not enabled everywhere while you &gt; can install PJMT everywhere. Yes that&#039;s the problem &gt; My concern is the complexity of the resulting code. The resulting code may be complex, but no so hard to implement in the existing code. And I think it&#039;s better to have a slow code than no code for this feature. You can test on my gallery, it&#039;s not so slow .. And I think this option as the last solution to read exif metadata (option not enabled by default, big warning when you enable it &#039;BE careful, this may slow your server&#039;) <!-- github-comment-id:124888726 -->
Author
Owner

Comment posted by BeSt on 15 Jun 2006 04:49

I just test how it's fast, and furthermore it's hosted by Multimania, which is not the best for rapidity ....

**Comment posted by BeSt on 15 Jun 2006 04:49** I just test how it&#039;s fast, and furthermore it&#039;s hosted by Multimania, which is not the best for rapidity .... <!-- github-comment-id:124888734 -->
Author
Owner

Comment posted by BeSt on 17 Jun 2006 10:04

Actually, I don't know what you mean Pierrick
> My concern is the complexity of the resulting code.
Complexity is :

  • size of code ? (yes, it's a problem, that's why I think it as an extension)
  • speed of code ? (metadata aren't read too often ..)
  • difficulty for the programmer ? (I think it's quite easy, but I don't know. Else I would have made it !)
**Comment posted by BeSt on 17 Jun 2006 10:04** Actually, I don&#039;t know what you mean Pierrick &gt; My concern is the complexity of the resulting code. Complexity is : - size of code ? (yes, it&#039;s a problem, that&#039;s why I think it as an extension) - speed of code ? (metadata aren&#039;t read too often ..) - difficulty for the programmer ? (I think it&#039;s quite easy, but I don&#039;t know. Else I would have made it !) <!-- github-comment-id:124888739 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#337