ExifTool Forum

ExifTool => Newbies => Topic started by: Cupcake9709 on May 02, 2023, 09:17:36 AM

Title: How can i copy EXIF & GPS Information from Image to Webp ?
Post by: Cupcake9709 on May 02, 2023, 09:17:36 AM
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

Title: Re: How can i copy EXIF & GPS Information from Image to Webp ?
Post by: Phil Harvey on May 02, 2023, 10:44:35 AM
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
Title: Re: How can i copy EXIF & GPS Information from Image to Webp ?
Post by: Cupcake9709 on May 02, 2023, 12:19:58 PM
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