Foliotek / Croppie

A Javascript Image Cropper
http://foliotek.github.io/Croppie
MIT License
2.56k stars 885 forks source link

Image with and height reducing after uploading( not even zooming In or rotating) #718

Open yrus2909 opened 4 years ago

yrus2909 commented 4 years ago

Croppie Version: 2.6.4 Uploading image even without zoom and rotate causing image in reducible resolution. Any help would be appreciated.

Original Image Specs: Width: 2560px Height:1440px Horizontal Resolution: 96dpi Vertical Resolution: 96dpi

Image Specs After upload: width :1422px Height:1440px VerticalResolution : 96dpi HorizontalResolution : 96dpi

Result Method used: $uploadCrop.result({ type: 'canvas', size: 'original', quality:1 }).then(function (dataImg) { var img = new Image(); img.src = dataImg; img.onload = function () { var width = img.width; } }

And also the resulting image is always converting dpi to 96dpi (suppose i uploaded an image with 300 dpi ) Please help.