hMatoba / piexifjs

Read and modify exif in client-side or server-side JavaScript.
MIT License
572 stars 119 forks source link

Update index.ts #59

Open Salketer opened 5 years ago

Salketer commented 5 years ago

Do not try to extract thumbnail if there is no pointer.

hMatoba commented 5 years ago

"firstIfdPointer" gets null? I think it's no. https://github.com/hMatoba/piexifjs/blob/2.0/src/utils.ts#L547

Salketer commented 5 years ago

I am very sorry I do not have the image that caused that anymore... But this corrected it. Sorry I do not know much of exif so can't really help. The only thing I know is that I was getting null at that spot. Maybe it was due to some incorrect exif in the first place.