Exiftool to remove RIFF headers from WEBP images

Started by rthakor5, April 24, 2023, 02:40:45 PM

Previous topic - Next topic

rthakor5

Hello,

I was wondering if there is any Exiftool support for stripping RIFF chunk headers from WEBP images. I am having issue writing to RIFF based file formats and wanted to know if there is a way to remove RIFF containers from WEBP images using Exiftool commands.

Thank you in advance!

Phil Harvey

The WebP file format uses a RIFF container.  I don't know if there is an uncontained format for WebP (like there is for JXL), so I don't think you can remove these headers and still have a valid file.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

rthakor5

Hi Phil, thank you for your response!

Does Exiftool have any plans to support writing for RIFF files?

I have a java project in which I am using Exiftool to create a metadata stripping mechanism and wanted to be able to support WEBP files.

Thank you again!

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

rthakor5

Interesting...

When I run the following command:

exiftool -v -gps:all= test.webp -o test-stripped.webp

I get the error:

Can't write RIFF files

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype


Phil Harvey

Oops.  If forget to add webp to the extension check of the -o option.  I'll fix this in the next release, but until then use -o test-stripped.%e instead of -o test-stripped.webp

Thanks for reporting this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).