Release Vulpes OS 2.7-preview.22
This commit is contained in:
parent
200d1fb235
commit
a138f97877
294 changed files with 515786 additions and 187 deletions
|
|
@ -1052,6 +1052,20 @@ function getImageSize(blob, callback, error) {
|
|||
else {
|
||||
metadata.type = 'jpeg';
|
||||
}
|
||||
// Modern Gecko decodes EXIF orientation itself, including
|
||||
// canvas.drawImage(). Gaia must not rotate those pixels twice.
|
||||
if (metadata.rotation || metadata.mirrored) {
|
||||
if (metadata.rotation === 90 || metadata.rotation === 270) {
|
||||
var width = metadata.width;
|
||||
metadata.width = metadata.height;
|
||||
metadata.height = width;
|
||||
}
|
||||
metadata.rotation = 0;
|
||||
metadata.mirrored = false;
|
||||
// Embedded thumbnails need not carry the parent's EXIF tag.
|
||||
// Generate a matching preview from the oriented full image.
|
||||
delete metadata.preview;
|
||||
}
|
||||
callback(metadata);
|
||||
},
|
||||
error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue