Exif Not Updated - Error: [minor] Bad PreviewIFD offset for Nikon_PreviewIFD_0x0

Started by nikonexif, June 27, 2021, 07:15:17 AM

Previous topic - Next topic

nikonexif

Hello

I try to update all dates from the exif using the following command line :
exiftool "-AllDates+=0:00:00 01:00:00" -verbose *.jpg

For some pictures, that's OK, but i have a lot of error and the result is the following :
166 files weren't updated due to errors

If i look at the error i have :
Error: [minor] Bad PreviewIFD offset for Nikon_PreviewIFD_0x0007 - IMG_20210531_173133.jpg

Do you know how to solve this issue ?
I've try many action without success.
The only one which works was to open the file in Gimp and save it again.
But regarding the number of files ... that's not possible unless if you know how to do it with a command line.

Thank you

nikonexif

Hello

I reply to my own topic.

The solution if to use the option
-m
That ignore minor erros

StarGeek

Quote from: nikonexif on June 27, 2021, 07:15:17 AM
The only one which works was to open the file in Gimp and save it again.

This is a destructive re-save and you have lost some of the image's data.  A better solution would be a program based upon jpegtran which does some lossless jpeg operations.  Under Windows, you could use Irfanview and it's Lossless Jpeg Plugin.  I mention this in case you have other problematic jpgs in the future that aren't fixable with exiftool.

With exiftool, as long as it isn't a RAW files such as a NEF, you could use FAQ #20 to try and repair the corrupted EXIF 
"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