Skip to content

Commit

Permalink
Don't throw for invalid EXIF values.
Browse files Browse the repository at this point in the history
Fixes #81
  • Loading branch information
blueimp committed Aug 29, 2016
1 parent da2e778 commit 605fa2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/load-image-exif-map.js
Expand Up @@ -343,13 +343,16 @@
return this.stringValues[id][value]
case 'ExifVersion':
case 'FlashpixVersion':
if (!value) return
return String.fromCharCode(value[0], value[1], value[2], value[3])
case 'ComponentsConfiguration':
if (!value) return
return this.stringValues[id][value[0]] +
this.stringValues[id][value[1]] +
this.stringValues[id][value[2]] +
this.stringValues[id][value[3]]
case 'GPSVersionID':
if (!value) return
return value[0] + '.' + value[1] + '.' + value[2] + '.' + value[3]
}
return String(value)
Expand Down

0 comments on commit 605fa2a

Please sign in to comment.