Hello!
I'm currently trialing pwg_representatives for some .nef raw files.
Sample list of files:
galleries/folder/myfile.nef
galleries/folder/myfile.xmp
galleries/folder/pwg_representative/myfile.jpg
The thumbnails and image are fine, but the metadata is ignored.
I copied the meta data from the .xmp into the .jpg w/o luck.
The plugin "read metadata" event throws an exception.
".../admin.php?page=plugin-read_metadata&showmetadata=1165" returns
Fatal error: Uncaught exception 'ImagickException' with message 'UnableToOpenBlob `/tmp/magick-XXDOeGST.ppm': @ error/blob.c/OpenBlob/2491' in .../plugins/read_metadata/admin.php:189 Stack trace: #0 .../plugins/read_metadata/admin.php(189): Imagick->__construct('./galleries/raw...') #1 .../admin/plugin.php(53): include_once('/share/...') #2 .../admin.php(298): include('/share/...') #3 {main} thrown in .../plugins/read_metadata/admin.php on line 189
Maybe read_metadata tries to read it from the .nef.
Where does Piwigo expect the meta data, .xmp or .jpg?
Does it support .xmp files at all?
piwigo: 11.1.0
read_metadata : revision 11.0.a
IMagick: 6.6.1-5 / 6.8.9 (two different installations)
These installations are both not public.
Thanks for reading and stay healthy, mountwilson
Offline
XMP sidecar files are not supported. Embedded XMP isn't supported either, apart from a small tags importing plugin you could manually add, [Forum, topic 25709] Plugin to import XMP tags as Piwigo keywords
Offline
Hi :-)
read_metadata read meta data in file jpeg
Offline
So that's [extension by ddtddt] Read Metadata.
Unclear from the description (would be nice to add that there), but from the source code comments it seems to read some EXIF, IPTC and XMP metadata; for the latter it requires the ImageMagick PHP extension.
Offline
can you provide a JPG for us to look at?
Offline
Hi :-)
executive wrote:
can you provide a JPG for us to look at?
+1
Offline
Hi!
Thank's a lot for your attention!
As a quick test I've made a an ugly change to "...\plugins\read_metadata\admin.php":
// Check ImageMagick is installed if ( extension_loaded( 'imagick' ) && class_exists( 'imagick' )) { echo $filename; //create new Imagick object from image & get the XMP data $RM_IM = new imagick($filename) ;
This gives:
.galleries/folder/myfile.nef
Fatal error: Uncaught exception 'ImagickException' with message
...
This replacement does the job:
//create new Imagick object from image & get the XMP data; $pinfo = pathinfo($filename); $repname = $pinfo['dirname'] . DIRECTORY_SEPARATOR.'pwg_representative' .DIRECTORY_SEPARATOR. $pinfo['filename'] .'.jpg'; $file = $filename; if (file_exists($repname)) { $file = $repname; } try { $RM_IM = new imagick($file); ...
But I'm sure that there's a much better way as it ignores representative_ext.
Thank's again for reading, mountwilson
Offline