Originally posted by jbinpg Thanks for doing the dirty work. All developers need bug reports to improve the product.
It was an user error!
Phil Harvey posted a question and used the following command to show which previews can be extracted:
> exiftool Pentax* Ricoh* -ext dng -ext pef -preview:all -a -G4 -s
The results for my test cases opened my eyes ...
======== ./IMGP6562.DNG
[Copy1] PreviewImage : (Binary data 2818959 bytes, use -b option to extract)
[] PreviewImage : (Binary data 54100 bytes, use -b option to extract)
[] ThumbnailTIFF : (Binary data 57816 bytes, use -b option to extract)
======== ./20190422_09-37-30_KP_SC3654.PEF
[] JpgFromRaw : (Binary data 2829512 bytes, use -b option to extract)
[] PreviewImage : (Binary data 55587 bytes, use -b option to extract)
[] ThumbnailImage : (Binary data 7115 bytes, use -b option to extract)
Until now I thought that the command should be the same for PEF and DNG. But the results for PEF and DNG show significant differences.
For Pentax DNG I have to modify my commands concerning full-size and thumbnail image extraction! - So no Bug in Exiftool but a user fault! (sorry)
Extracts a full-size JPG:
PEF > exiftool -b -JpgFromRaw -w fullsizepreview/%d%f_.jpg ./anImage.PEF
DNG > exiftool -b -Copy1:PreviewImage -w fullsizepreview/%d%f_.jpg ./anImage.DNG
Exracts a thumbnail JPG:
PEF > exiftool -b -ThumbnailImage -w %d%f_thumbnail.jpg anImage.PEF
DNG > exiftool -b -ThumbnailTIFF -w %d%f_fullsize.jpg anImage.DNG
For preview-size works for PEF and DNG the same.
PEF > exiftool -b -PreviewImage -w %d%f_previewsize.jpg anImage.PEF
DNG > exiftool -b -PreviewImage -w %d%f_previewsize.jpg anImage.DNG