exif-js

Dropzone is modifying my image before sending it

蹲街弑〆低调 提交于 2021-01-29 08:39:41
问题 I am facing a problem using Dropzone with an image: Dropzone is sending a file to my server that is different from the original file. I am using the library from the CDN https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.7.0/dropzone.min.js. The file I send is https://picciao.com/img/photo-1.jpg The file I receive on my server is https://picciao.com/img/products/k1fDK7MRp40c3TVwPOu4FZOO.jpg As you can see, the image hasn't the same orientation. I do not understand where Dropzone is modifying

Property 'files' does not exist on type 'EventTarget' error in typescript

女生的网名这么多〃 提交于 2019-12-28 06:27:26
问题 I am trying to access the value of the input file from my ionic 2 application but still I'm facing the issue of property files does not exist on type 'EventTarget'. As it is properly working in js but not in typescript. The code is given below: document.getElementById("customimage").onchange= function(e?) { var files: any = e.target.files[0]; EXIF.getData(e.target.files[0], function() { alert(EXIF.getTag(this,"GPSLatitude")); }); } Please help me solve this issue as it is not building my

Property 'files' does not exist on type 'EventTarget' error in typescript

一曲冷凌霜 提交于 2019-11-28 00:38:50
I am trying to access the value of the input file from my ionic 2 application but still I'm facing the issue of property files does not exist on type 'EventTarget'. As it is properly working in js but not in typescript. The code is given below: document.getElementById("customimage").onchange= function(e?) { var files: any = e.target.files[0]; EXIF.getData(e.target.files[0], function() { alert(EXIF.getTag(this,"GPSLatitude")); }); } Please help me solve this issue as it is not building my ionic 2 application. The e.target property type depends on the element you are returning on getElementById(