Does ImageMagick preserve XMP when converting to webp?
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Does ImageMagick preserve XMP when converting to webp?
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.
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?
Recent releases of ImageMagick preserves ICC, EXIF, and XMP profiles to the WEBP image format.
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
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
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
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
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
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
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
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.
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.
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
Profile support requires libwebpmux, version 0.4.4 or above. Was your instance of IM built with libwebpmux?
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
Hmmm. I'm away from that machine right now. I'll check when I get back.
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
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.
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.
-
- Posts: 10
- Joined: 2017-07-21T11:57:30-07:00
- Authentication code: 1151
Re: Does ImageMagick preserve XMP when converting to webp?
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
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?
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
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?