ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: rthakor5 on April 24, 2023, 02:40:45 PM

Title: Exiftool to remove RIFF headers from WEBP images
Post by: rthakor5 on April 24, 2023, 02:40:45 PM
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!
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: Phil Harvey on April 24, 2023, 02:49:50 PM
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
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: rthakor5 on April 24, 2023, 04:59:31 PM
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!
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: Phil Harvey on April 24, 2023, 08:51:42 PM
ExifTool does support writing WebP.  See the supported files list (https://exiftool.org/#supported).

- Phil
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: rthakor5 on April 24, 2023, 10:26:09 PM
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
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: StarGeek on April 24, 2023, 11:26:07 PM
Upgrade to version 12.46 or higher (https://exiftool.org/ancient_history.html#v12.46).
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: rthakor5 on April 25, 2023, 11:40:51 AM
I have version 12.50
Title: Re: Exiftool to remove RIFF headers from WEBP images
Post by: Phil Harvey on April 25, 2023, 12:27:42 PM
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