Author Topic: Newbie getting an error message when extracting a preview from a JPG  (Read 2397 times)

warhammer

  • Newbie
  • *
  • Posts: 3
Hi, thanks for this great app. I'm going mad because I've been trying to get exiftool work for about 1.5 hours but it won't. Here's the scene. I have a JPG file containing a 640x480 preview and a thumbnail. I didn't copy exiftool to one of my PATH directories, because I'm using it in my picture's directory. I'm running ET on Windows 7.

I can successfully extract the thumbnail via
exiftool -b -thumbnailimage picname.jpg > thumb.jpg

But I can't extract the 640x480 preview using the command
exiftool -b -previewimage picname.jpg > preview.jpg

I get the following:

Code: [Select]
Warning: [minor] PreviewImage is not a valid JPEG image - picname.jpg

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14895
    • ExifTool Home Page
Re: Newbie getting an error message when extracting a preview from a JPG
« Reply #1 on: January 29, 2011, 01:11:26 PM »
Sounds like the previewimage may have been lost or corrupted by editing with other software.  If you post a sample image or email one to me (phil at owl.phy.queensu.ca) I'll be able to tell for sure.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

warhammer

  • Newbie
  • *
  • Posts: 3
Re: Newbie getting an error message when extracting a preview from a JPG
« Reply #2 on: January 29, 2011, 01:36:41 PM »
Thanks for your reply.

The picture hasn't been edited, it's absolutely untouched. I have the same issue with this sample image made by the same model (Pentax Optio E40).

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14895
    • ExifTool Home Page
Re: Newbie getting an error message when extracting a preview from a JPG
« Reply #3 on: January 29, 2011, 02:56:31 PM »
I suspect that you are wrong about the image being "untouched".

The image you linked was corrupted by a Microsoft product.  You must be careful since it is very easy to corrupt image metadata with Microsoft software without realizing it.

I have original samples from an Optio E40 where the preview image is fine, so I know that you should be able to extract the PreviewImage without problems from an untouched E40 image.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

warhammer

  • Newbie
  • *
  • Posts: 3
Re: Newbie getting an error message when extracting a preview from a JPG
« Reply #4 on: January 29, 2011, 02:58:22 PM »
ok, thank you