Skip to main content
Known Participant
October 29, 2022
Question

Writing metadata in webp files

  • October 29, 2022
  • 2 replies
  • 3383 views

Hi guys,

 

I wonder if there is a way to write a matadata into webp files in bulk? Any suggestions are welcome.

 

Many thanks,

Alex

This topic has been closed for replies.

2 replies

Mylenium
Legend
October 29, 2022

Okay, that's probably going to require a complex script for PS then.

 

Mylenium

Mylenium
Legend
October 29, 2022

XnView and IrfanView can handle batch processing of such stuff easily. It's always useful to have such tools handy, especially since they are basically free.

 

Mylenium

Known Participant
October 29, 2022

I have thousands of webp files and they all should contain a different metadata which I have into a csv file. Is that possible with XnView or IrfanView? Currently the webp image has no info when I open it with PS. Please see the screenshot attached. Thanks

Stephen Marsh
Community Expert
Community Expert
October 30, 2022
quote

I have thousands of webp files and they all should contain a different metadata which I have into a csv file. Is that possible with XnView or IrfanView? Currently the webp image has no info when I open it with PS. Please see the screenshot attached. Thanks


By @AlexanderNik

 

I’m going to suggest ExifTool, as you have so many images and a single line command can accomplish this, rather than hundreds of lines of scripting code.

 

The following blogpost has info on both export to and import from CSV. There are Adobe scripts mentioned, however, I'm not sure if WebP is supported as these scripts were written before Adobe supported this file format.

 

https://prepression.blogspot.com/2016/08/extracting-metadata-to-csv.html

 

I'll post a link to an example when I dig it up... Edit:

 

https://community.adobe.com/t5/bridge-discussions/need-a-script-to-update-keywords-for-20000-images-in-bridge/td-p/8240436#U8240445

 

https://community.adobe.com/t5/bridge-discussions/need-a-script-to-update-keywords-for-20000-images-in-bridge/td-p/8240436#U8240450

 


@AlexanderNik – Adding metadata without opening the image data makes the most sense. This is what happens when using ExifTool, only the metadata is edited, the image data isn't affected. This is usually where Bridge can also help, however even in the newly released Bridge 2023 WebP metadata support hasn't been added. Although Photoshop can write various metadata when saving, Bridge incorrectly reports that WebP doesn't support metadata.

 

I tried the following script from @willcampbell7 

https://www.marspremedia.com/software/photoshop/keywords-from-csv

However, the keyword metadata wasn't written. I tried in 2021 with the Google WebP plugin and with 2022 using native WebP support.

 

So, without ExifTool or another 3rd party solution, the only other Adobe way to do this in bulk would be via a script for Photoshop. Each image would have to be opened and resaved. This is slow and if using lossy compression, further image degradation would be introduced as each image has to be decompressed/recompressed just to write the metadata.