Page 1 of 1
Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-02-28T18:30:26-07:00
by carlseibert
I don't have a program that will read metadata from WEBP images, so I can't test this for myself.
Does IM preserve XMP metadata (specifically the IPTC fields in the XMP) when converting from JPEG to WEBP? Or when resizing WEBPs, for that matter?
This will matter if WEBP ever gains acceptance. WEBPs will need to convey descriptive and copyright management information if they are to be published/distributed on the internet, as per the DMCA and, well, neighborly-ness.
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-02-28T19:46:22-07:00
by magick
Recent releases of ImageMagick preserves ICC, EXIF, and XMP profiles to the WEBP image format.
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-04-27T15:57:59-07:00
by carlseibert
Thanks!
For some reason, I never saw/got the email that you had responded.
I just saw my own question in a search and noticed that you had answered
Keep up the good work.
-Carl
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-04-28T19:03:13-07:00
by carlseibert
Oh dear.
When I tried it, I got no metadata. Like so,
Carls-MacBook-Pro-2:webp carl$ convert test_IM.jpg test3.webp
Carls-MacBook-Pro-2:webp carl$ exiftool -a -G1 test_IM.jpg | grep Description
[XMP-dc] Description : The glorious light of late afternoon finds a African Iris growing in Bonnie's garden. I needed a sample shoot, so I shot some of Bonnie's flowers on April 13, 2017. Photo by Carl Seibert/Creative Commons BY-NC-ND4 (Please link photographer's name to
https://www.carlseibert.com/commons )
Carls-MacBook-Pro-2:webp carl$ exiftool -a -G1 test3.webp | grep Description
Carls-MacBook-Pro-2:webp carl$
Am I doing something incorrectly here?
This with IM 7.0.7-28
Carls-MacBook-Pro-2:webp carl$ magick --version
Version: ImageMagick 7.0.7-28 Q16 x86_64 2018-04-28
http://www.imagemagick.org
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-04-28T19:16:04-07:00
by carlseibert
This may help:
Carls-MacBook-Pro-2:webp carl$ convert test3.webp profile.xmp
Decoded /var/folders/ww/bw359dcn20d7nw0tdvyr82xc0000gp/T/magick-74942_X278i6tu9xt. Dimensions: 2048 x 673 . Format: lossy. Now saving...
Saved file /var/folders/ww/bw359dcn20d7nw0tdvyr82xc0000gp/T/magick-74942z0_ZUlwbMg1R
convert: no APP1 data is available `profile.xmp' @ error/meta.c/WriteMETAImage/2388.
And I sanity checked by converting that same JPEG, JPEG-to-JPEG, and all was well.
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-05-14T11:46:38-07:00
by carlseibert
Bump.
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-05-14T17:29:19-07:00
by magick
Profile support requires libwebpmux, version 0.4.4 or above. Was your instance of IM built with libwebpmux?
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-05-19T12:28:59-07:00
by carlseibert
Hmmm. I'm away from that machine right now. I'll check when I get back.
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-05-19T15:34:03-07:00
by carlseibert
Hi,
On my Fedora 27 machine, I have libwebp 0.6.0-4 installed, it allegedly includes libwebpmux
On my Mac, I also have webp support installed, but I can't quite figure out how to convince homebrew to tell me exactly which libraries are included or their version numbers.
Both instances can convert a file to WEBP. Both return the same error about "no APP1 data is available 'profile.xmp' "when I attempt to read the profile in ImageMagick.
And if I read the metadata from a resulting WEBP in ExifTool, nothing from XMP is returned.
Re: Does ImageMagick preserve XMP when converting to webp?
Posted: 2018-07-20T17:51:05-07:00
by carlseibert
Circling back to this issue ----
Yes, "webpmux -help" returns help text, so I'm assuming libwebpmux is present
And, I was just able to do
Code: Select all
cwebp test.jpg -metadata all -resize 1000 0 -o resized_w_xmp.webp
and the result was a resized WEBP with its metadata preserved, which is exactly the behavior I'm chasing.
But I couldn't figure out how to accomplish the same thing using convert. With convert, I was able to save a JPEG to a resized WEBP, but got nowhere with metadata. I wasn't able to extract an XMP profile or write one to a WEBP. And not surprisingly, "-metadata all" didn't mean anything to convert.
Could my ImageMagick installation be unable to find libwebpmux? It pretty clearly has access to libwebp itself.
Ideas?