EXIF is lost after jpg->webp
ImageMagick version
ImageMagick 7.1.2-18 Q16 x86_64 23822 https://imagemagick.org
Operating system
Linux
Operating system, version and so on
Ubuntu 26.04 LTS
Description
I use script to convert all JPGs to WEBPs. Usually it work like a charm. But I met interesting camera. An jpg from this camera contains metadata. But all metadata will be lost in webp files.
But I also found another interesting fact. If I will open 20260828_171402.jpg in nomacs, crop and save to "by nomacs.jpg" it should be almost the same file (I am talking about metadata), but the script will convert "by nomacs.jpg" to "by nomacs.webp" with metadata!
Bug 1) magick should throw error code because of -regard-warnings. But magick returns 0 (success)
$ magick -regard-warnings 20260828_171402.jpg -auto-orient -quality 90 20260828_171402.webp
$ echo $?
0Bug 2) magick should not lost metadata.
Steps to Reproduce
Use folder with the only 4 my example files and start magick
wcurl https://github.com/user-attachments/files/31554344/testGal.zip
unzip testGal.zip
cd testGal/
sudo apt install -y fd-find
fdfind -e jpg -e jpeg -e JPG -e png -tf --maxdepth 1 -x magick -regard-warnings {} -auto-orient -quality 90 {.}.webpOf cause you can drop fdfind and use magick with the filename directly.
Images
Source: ImageMagick/ImageMagick