How can i copy EXIF & GPS Information from Image to Webp ?

Started by Cupcake9709, May 02, 2023, 09:17:36 AM

Previous topic - Next topic

Cupcake9709

Hello folks

I hope you are doing well
I am the worst kind of newbie you could ever meet , that's why my life's turned hell recently
I need to convert all My images - which have very important EXIF & GPS information- on my HDD cause it take a lot of space
I have heard that webp would save great amount of space , So I converted bunch of Webps using Cwebp
Although i have used -metadata all command, some how it doesn't Copy neither EXIF nor GPS information
the command i used was :-

@echo off
for %%f in (*.png) do cwebp -q 70 -metadata all %%~nf.png -o %%~nf.webp
del *.png
for %%f in (*.jpg) do cwebp -q 70 -metadata all %%~nf.jpg -o %%~nf.webp
del *.jpg
for %%f in (*.jpeg) do cwebp --q 70 -metadata all %%~nf.jpeg -o %%~nf.webp
del *.jpeg

that's why i am trying to copy those information from my original images to Converted Webps using EXIFTOOL
But I am getting those errors using the following EXIF Command (attached)
it seems - for a newbie like me - EXIF cannot read or write data to Webps
Can you please tell what should i do in this case ?
Thanks in advance


Phil Harvey

Try this command to copy the metadata from JPEG to WEBP for all files in directory DIR:

exiftool -tagsfromfile %d%f.jpg -ext webp DIR

- 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 ($).

Cupcake9709

Quote from: Phil Harvey on May 02, 2023, 10:44:35 AMTry this command to copy the metadata from JPEG to WEBP for all files in directory DIR:

exiftool -tagsfromfile %d%f.jpg -ext webp DIR

- Phil

Brilliant!!
Thank you Phil! , I am very grateful