We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ad92c4 commit c09caa0Copy full SHA for c09caa0
1 file changed
js/demo/demo.js
@@ -117,9 +117,11 @@ $(function () {
117
// eslint-disable-next-line no-param-reassign
118
data = result.data()
119
}
120
- if (data.imageHead && data.exif) {
121
- // Reset Exif Orientation data:
122
- loadImage.writeExifData(data.imageHead, data, 'Orientation', 1)
+ if (data.imageHead) {
+ if (data.exif) {
+ // Reset Exif Orientation data:
123
+ loadImage.writeExifData(data.imageHead, data, 'Orientation', 1)
124
+ }
125
img.toBlob(function (blob) {
126
loadImage.replaceHead(blob, data.imageHead, function (newBlob) {
127
content
0 commit comments