ExifTool Forum

General => Metadata => Topic started by: BrianFisk on December 01, 2018, 09:29:21 AM

Title: Bad Photoshop IRB resource "\x002\x1c\x02"
Post by: BrianFisk on December 01, 2018, 09:29:21 AM
I have written some python code to add IPTC data to a jpeg file.  The updated jpeg file has the subject error message when I generate an HTML report from exiftool.  I can't find that string in the file and the IPTC data looks good to me.  Can you advise exactly what exiftool is reporting please. I have attached the jpeg file.

It would be helpful, when reporting errors like this, to have some pointer to the location in the file of the error e.g. at byte 0x1035

Many thanks

Brian
Title: Re: Bad Photoshop IRB resource "\x002\x1c\x02"
Post by: Phil Harvey on December 01, 2018, 10:53:12 AM
The image you posted is not the same as the one you used for the exif.html output.

I get these warnings with the image you posted:

> exiftool ~/Desktop/ImageAdd.jpg -validate -warning -a
Validate                        : 13 Warnings (1 minor)
Warning                         : [minor] Odd offset for ExifIFD tag 0x9286
Warning                         : Value for ExifIFD tag 0x9286 overlaps IFD
Warning                         : JPEG format error
Warning                         : Missing required JPEG ExifIFD tag 0x9000 ExifVersion
Warning                         : Missing required JPEG ExifIFD tag 0x9101 ComponentsConfiguration
Warning                         : Missing required JPEG ExifIFD tag 0xa000 FlashpixVersion
Warning                         : Missing required JPEG ExifIFD tag 0xa001 ColorSpace
Warning                         : Missing required JPEG ExifIFD tag 0xa002 ExifImageWidth
Warning                         : Missing required JPEG ExifIFD tag 0xa003 ExifImageHeight
Warning                         : Missing required JPEG IFD0 tag 0x011a XResolution
Warning                         : Missing required JPEG IFD0 tag 0x011b YResolution
Warning                         : Missing required JPEG IFD0 tag 0x0128 ResolutionUnit
Warning                         : Missing required JPEG IFD0 tag 0x0213 YCbCrPositioning


- Phil
Title: Re: Bad Photoshop IRB resource "\x002\x1c\x02"
Post by: BrianFisk on December 01, 2018, 04:59:01 PM
Phil,

many thanks for your prompt reply.

Actually the html file had the correct output appended to it at the end but I hadn't spotted that.  Unfortunately I can't currently recreate the error and it was in a 2.3 Mb jpeg which I can't add to this forum.

I've tried running the same command as you 

exiftool Imageadd.jpg -validate -warning -a

but I only get the following output:

Validate                        : 6 Warnings (4 minor)
Warning                         : [minor] Odd offset for IFD0 tag 0x0132
Warning                         : [minor] Odd offset for ExifIFD tag 0x9003
Warning                         : Value for ExifIFD tag 0x9003 overlaps IFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x9004
Warning                         : [minor] Odd offset for ExifIFD tag 0x9286
Warning                         : JPEG format error

how do I get the rest of the information about the JPEG format error please?

Thanks again

Brian

Title: Re: Bad Photoshop IRB resource "\x002\x1c\x02"
Post by: Phil Harvey on December 01, 2018, 05:35:30 PM
Hi Brian,

The JPEG format error indicates that the image doesn't end with a proper EOI marker.  This usually indicates a corrupted or truncated image.

- Phil
Title: Re: Bad Photoshop IRB resource "\x002\x1c\x02"
Post by: BrianFisk on January 16, 2019, 07:32:00 AM
Thanks Phil