Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice (fixes #1923)

This commit is contained in:
Djamil Legato
2020-07-20 16:47:58 -07:00
parent ded02222a3
commit 73fde930a9
7 changed files with 33 additions and 27 deletions

View File

@@ -1,3 +1,9 @@
# v1.10.0-rc.15
## mm/dd/2020
1. [](#bugfix)
* Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice [#1923](https://github.com/getgrav/grav-plugin-admin/issues/1923)
# v1.10.0-rc.14
## 07/09/2020

View File

@@ -1,6 +1,6 @@
import $ from 'jquery';
import Dropzone from 'dropzone';
import EXIF from 'exif-js';
// import EXIF from 'exif-js';
import request from '../../utils/request';
import { config, translations } from 'grav-config';
@@ -71,7 +71,7 @@ const DropzoneMediaConfig = {
</div>`.trim()
};
global.EXIF = EXIF;
// global.EXIF = EXIF;
const ACCEPT_FUNC = function(file, done, settings) {
const resolution = settings.resolution;

View File

@@ -141,7 +141,7 @@ export default class PageMedia extends FilesField {
let URL = target.closest('[data-media-path]').data('media-path');
let original = this.dropzone.files.filter((file) => encodeURIComponent(file.name) === filename).shift();
original = original.extras.original || encodeURIComponent(original.name);
original = original && ((original.extras && original.extras.original) || encodeURIComponent(original.name));
target.attr('href', `${URL}/${original}`);
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -19,7 +19,7 @@
"codemirror": "^5.51.0",
"cookies-js": "^1.2.3",
"debounce": "^1.2.0",
"dropzone": "^5.5.1",
"dropzone": "^5.7.1",
"es6-map": "^0.1.5",
"es6-promise": "^4.2.8",
"eventemitter3": "^4.0.0",

View File

@@ -1973,10 +1973,10 @@ dot-prop@^5.2.0:
dependencies:
is-obj "^2.0.0"
dropzone@^5.5.1:
version "5.7.0"
resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-5.7.0.tgz#8d1007f3ebcc6e6d64096823f854d898f7564ef2"
integrity sha512-kOltiZXH5cO/72I22JjE+w6BoT6uaVLfWdFMsi1PMKFkU6BZWpqRwjnsRm0o6ANGTBuZar5Piu7m/CbKqRPiYg==
dropzone@^5.7.1:
version "5.7.1"
resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-5.7.1.tgz#8e41a85879ff145562e8fcce39c6ff619dce81be"
integrity sha512-eqcJafupMKRlVUihZtsLkzLn02WTPUMHeImP5ZtWm3ERObC/dv15te0qqn/X2rEKaSqRC0pNTHUBPgrPWcP52w==
duplexer2@0.0.2:
version "0.0.2"