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
//