tonaras
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] No metadata is extracted from WebP imagesHi David! Sorry for the late response, it’s been a busy week here.
That’s phantastic really and I’m immensely grateful for your great support David.
I’ll do some extensive testing with the Development Version and let you know what I find.
Meanwhile, all the best to you!!Forum: Plugins
In reply to: [Media Library Assistant] No metadata is extracted from WebP imagesThanks for the update David! I really appreciate it!!
I’ll try by replacing the function as you proposed. I’l let you know if I get stuck…
I really don’t grasp why essential functions that were available in pre PHP 8+ suddenly aren’t available in PHP 8+ anymore. This PHP 8 business is more and more getting such a PIA on so many levels…
Forum: Plugins
In reply to: [Media Library Assistant] No metadata is extracted from WebP imagesThanks for the incredibly speedy reply! Sorry, it took me a while to get back to you as I wanted to finish some heavy investigating on this issue beforehand.
In this github link you will find varius webp images with xpm/exif for testing purposes: https://github.com/drewnoakes/metadata-extractor-images/tree/master/webp
I didn’t succeed in getting MLA to read ANY metadata in the webp images from that repo (although all other tools (Photoshop, Exiftool, WebPmux DO read the metadata of these images successfully).
After A LOT of hacking, I successfully managed to get MLA to read xmp data that I injected into my own webp images via google’s webpmux.exe command line tool. The raw injected xmp data I used was:
<x:xmpmeta xmlns:x=”adobe:ns:meta/” x:xmptk=”Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00 “>
<rdf:RDF xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#”>
<rdf:Description rdf:about=””
xmlns:xmp=”http://ns.adobe.com/xap/1.0/”>
<xmp:CreatorTool>iStation|eShopManager Windows – http://www.eshopmanager.gr</xmp:CreatorTool>
<xmp:CreateDate>2021-11-28T09:33:34+02:00</xmp:CreateDate>
<xmp:ModifyDate>2022-03-03T18:08:37+02:00</xmp:ModifyDate>
<xmp:MetadataDate>2022-03-03T18:08:37+02:00</xmp:MetadataDate>
<xmp:MetadataTitle>[MetadataTitle]</xmp:MetadataTitle>
<xmp:MetadataDescription>[MetadataDescription]</xmp:MetadataDescription>
<xmp:MetadataAltText>[MetadataAltText]</xmp:MetadataAltText>
<xmp:MetadataTitleL2>[MetadataTitleL2]</xmp:MetadataTitleL2>
<xmp:MetadataDescriptionL2>[MetadataDescriptionL2]</xmp:MetadataDescriptionL2>
<xmp:MetadataAltTextL2>[MetadataAltTextL2]</xmp:MetadataAltTextL2>
<xmp:MetadataTitleL3>[MetadataTitleL3]</xmp:MetadataTitleL3>
<xmp:MetadataDescriptionL3>[MetadataDescriptionL3]</xmp:MetadataDescriptionL3>
<xmp:MetadataAltTextL3>[MetadataAltTextL3]</xmp:MetadataAltTextL3>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>The data in square brackets such as [MetadataAltText] are just placeholders to be replaced by any UTF-8 string.
You can download my sample webp image with these xmp metadata tags from https://eshopmanager.gr/uploads/book01.webp
Please note, as I found out, custom xmp tags (as as <xmp:MetadataAltText>) need to be preceeded with the “Metadata” part before the “AltText”, otherwise the image will appear somehow corrupted (at least for Photoshop, which will throw an error when attempting to open the file that has, what it considers, wrong xmp tags and it. PS seems very picky about the xmp namespace).
Meanwhile, I’m investigating on my end why xmp tags set via the Exiv2 tool in webp images don’t work with MLA.
I hope this will help you make your AMAZING MLA even better by supporting webp images (which are getting realy essential).
Please , let me know if I can be in any way further usefull for your endavor! I’d also highly appreciate if you can keep me up to date once you sort things out on this!
Best regards,
Tony