[Originally posted by linuxuser on 2009-06-11 11:38:24-07]
I have PEF-Files from a Pentax K100D, which should contain a thumbnail _and_ a jpg-file. How can I extract the jpg-file and not the thumbnail?
[Originally posted by exiftool on 2009-06-11 11:47:31-07]The K100D PEF images contain 3 jpgs, the ThumbNailImage,
PreviewImage and JpgFromRaw:
> exiftool PentaxK100D.pef -thumbnailimage -b > a.jpg
> exiftool a.jpg -imagesize
Image Size : 160x120
> exiftool PentaxK100D.pef -previewimage -b > a.jpg
> exiftool a.jpg -imagesize
Image Size : 640x480
> exiftool PentaxK100D.pef -jpgfromraw -b > a.jpg
> exiftool a.jpg -imagesize
Image Size : 3008x2000
- Phil
[Originally posted by linuxuser on 2009-06-11 12:38:31-07]
Thanks a lot, Phil! How can I pipe the exiftool result to convert? I would like to resize it to a smaller size. Something like convert - -resize 500x outpug.jpg
[Originally posted by exiftool on 2009-06-11 12:54:46-07]You basically answered your own question:
exiftool a.pef -previewimage -b | convert - -resize 500x out.jpg
- Phil