grum wrote:
Sorry, I have made a mistake in the URL.
http://my_IP/piwigo/admin.php?importAmdTags=y
with the .php extension, it will probably works better ^_^;
No luck so far. Now it shows me admin home page.
Offline
Your are on the admin page, this is normal.
But, do you have some informations displayed on the top ?
Like this :
---Start to build tag from XMP metadata--- (!) build is in simulate mode, database will not be modified (i) Tag XMPBIC already exist in Piwigo, don't create it (i) Tag xmpVacances already exist in Piwigo, don't create it (i) Tag Week-end already exist in Piwigo, don't create it [...]
if no, can you check in the plugin manager if the PersonnalPlugin is activated ?
Offline
grum wrote:
Your are on the admin page, this is normal.
But, do you have some informations displayed on the top ?
Like this :Code:
---Start to build tag from XMP metadata--- (!) build is in simulate mode, database will not be modified (i) Tag XMPBIC already exist in Piwigo, don't create it (i) Tag xmpVacances already exist in Piwigo, don't create it (i) Tag Week-end already exist in Piwigo, don't create it [...]if no, can you check in the plugin manager if the PersonnalPlugin is activated ?
Oops, sorry. It was not activated, actually. And that was the reason I haven't the debugging output. Now your code seems to work perfect. Thanks!
Offline
Dunno why but I can NOT get this plugin working.
Each time i get next results after a scan is done:
•3 images have been analyzed and 0 metada have been found
•0 images have not been analyzed
•3 images have no metadata
I've verified that each jpg file DOES contain metadata in it.
Anyone please?
Greets
Gekkie
gekkie wrote:
Dunno why but I can NOT get this plugin working.
Each time i get next results after a scan is done:
•3 images have been analyzed and 0 metada have been found
•0 images have not been analyzed
•3 images have no metadata
I've verified that each jpg file DOES contain metadata in it.
Anyone please?
Greets
Gekkie
can you send me one of the jpeg file ?
Offline
Hello all,
I've more or less the same problem but :
.1. Sometimes one image is correctly "matadated". Not due to its characteristic (some of the same date, camera ... are not)
.2. With pLoader its all Ok !
Anyone noticed a similary phenomena ?
Thank's
The only way for me to understand why metadata are not found by the plugin, is to send me an example (file sent by email or a link to an image of the gallery)
Offline
Hi PG
PG wrote:
.1. Sometimes one image is correctly "matadated". Not due to its characteristic (some of the same date, camera ... are not)
If you upload photos with the web form on [Administration > Photos > Add > Upload Photos] then the web size photo has lost its EXIF/IPTC/XMP :-/ (I didn't found an easy way to keep them after image resize) and [extension by grum] Advanced Metadata only reads in the web size photo while core metadata reader reads in the high definition photo.
PG wrote:
.2. With pLoader its all Ok !
pLoader doesn't remove the EXIF/IPTC/XMP from resized photos.
Offline
hey,
i can give you the link to the website
http://mugshots.gekkie.be
greets
Gekkie
gekkie wrote:
hey,
i can give you the link to the website
http://mugshots.gekkie.be
greets
Gekkie
hey,
here is an original picture in zip file http://mugshots.gekkie.be/test.zip
when i upload this one, all info is removed or not processed
you can find the same picture here http://mugshots.gekkie.be/picture.php?/4/category/4
it looks like the software is stripping off the EXIF info
greets
Gekkie
gekkie wrote:
gekkie wrote:
hey,
i can give you the link to the website
http://mugshots.gekkie.be
greets
Gekkiehey,
here is an original picture in zip file http://mugshots.gekkie.be/test.zip
when i upload this one, all info is removed or not processed
you can find the same picture here http://mugshots.gekkie.be/picture.php?/4/category/4
it looks like the software is stripping off the EXIF info
greets
Gekkie
Yes.
And on the original picture, the plugin read the metadata without any problem.
On the galerie picture, the only EXIF info that we can see is "CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 95"
So, I think you are uploading your pictures sith the piwigo's web form on [Administration > Photos > Add > Upload Photos]
See the previous topic (plg's answer) to understand why and how to.
On my side, I have to implement a feature on the plugin to be abble to read metadata on the HD pictures
(referenced as [Bugtracker] ticket 1846)
Offline
plg wrote:
Hi PG
PG wrote:
.1. Sometimes one image is correctly "matadated". Not due to its characteristic (some of the same date, camera ... are not)
If you upload photos with the web form on [Administration > Photos > Add > Upload Photos] then the web size photo has lost its EXIF/IPTC/XMP :-/ (I didn't found an easy way to keep them after image resize) and [extension by grum] Advanced Metadata only reads in the web size photo while core metadata reader reads in the high definition photo.
PG wrote:
.2. With pLoader its all Ok !
pLoader doesn't remove the EXIF/IPTC/XMP from resized photos.
This is more or less what i understood last week ...
More precisely the web form exploits HD metedata if it doesn't found metedata in "web format" i think :
"
$exif = get_exif_data($picture['current']['image_path'], $exif_mapping);
if (count($exif) == 0 and $picture['current']['has_high'])
{
$exif = get_exif_data($picture['current']['high_url'], $exif_mapping);
}
" (picture_metadata.inc.php)
Thank's for your responses ... i'll try to deal with ctual code or modify ... if succeed, i'll post news !
P.S. for Grum : I just noticed you're located in Nantes ... for my own, i'm in Rennes (but didn'nt found anything on "briton's" forum ;-) )
I made a fisrt try modifying the "JpegReader.class.php" of the "Advanced Metadata plugin" as above and it seems to be ok.
WARNING : I don't know very well actually the structure of this project and i didn't find (... any time to find ...) if "pwg_high" is somewhere defined as a constant or parameter ...
Any comment & amelioration ... would be appreciated.
Attempts to flame ... why not ? I'm not combustible ;-))
//
// Beginning modification of JPegReader.class.php 2010-09-13
// in fonction "load"
//
// by PGouery : pascal.gouery@uhb.fr : Rennes / France
//
// Object :
// Search first EXIF data in th High def if exists. If not, search in web_def
//
// Comment : may be more or less dirty in the use of pwg_high
// ... didn't find parametric or constant def for it ...
//
$pgg_fileName = dirname($fileName)."/pwg_high/".basename($fileName);
if(file_exists($pgg_fileName))
{
$this->fileName=$pgg_fileName;
$this->fileHandler = fopen($pgg_fileName, "r");
if($this->fileHandler)
{
$this->isValid = $this->isAValidFile();
if($this->isValid)
{
$this->readAppMarkerSegments();
$this->processSpecialAppMarkerSegments();
$this->isLoaded=true;
}
fclose($this->fileHandler);
return(true);
}
return(false);
}
else if(file_exists($fileName))
{
$this->fileName=$fileName;
$this->fileHandler = fopen($fileName, "r");
if($this->fileHandler)
{
$this->isValid = $this->isAValidFile();
if($this->isValid)
{
$this->readAppMarkerSegments();
$this->processSpecialAppMarkerSegments();
$this->isLoaded=true;
}
fclose($this->fileHandler);
return(true);
}
return(false);
}
//
// End of modified section P.Gouéry
//
Updating the JpegMetaData class is a very bad idea.
By doing it like this :
- you made the class dependant with piwigo. The JpegMetadata class is not aimed to be dependant of Piwigo. Piwigo can use it, other project can too.
- the next plugin update will override your modification
There is a feature in the bugtracker to implement reading of metadata in the HD picture [Bugtracker] ticket 1846
The feature is actually implemented at home, but not yet commited in the repository.
If you can't wait for this feature, the good solution is to update the AMD plugin :
1/ Search all occurence of the analyzeImageFile function in the amd_*.class.inc.php files
2/ The first parameter for this function is the picture's filename
3/ Everywhere you have a call to this function, apply a rule like you made on the picture filename given as parameter (dirname.....)
Offline
I have commited a new release on the repository, you can take a look on the code to see how I use the analyzeImageFile function to read HD pictures.
Offline