jofftiquez / vue-croppie

Vue wrapper for croppie
https://jofftiquez.github.io/vue-croppie/
MIT License
260 stars 42 forks source link

Rotating the image, it is cutted #66

Open manumora opened 5 years ago

manumora commented 5 years ago

Playing with your example, when the image is rotated and cropped, the picture is cutted. AwesomeScreenshot-jofftiquez-github-io-vue-croppie--2019-08-13_1_25

Testing in local, it fails as well.

viktorhunko commented 4 years ago

seems like a bug in original croppie: https://github.com/Foliotek/Croppie/issues/668

pauubach commented 4 years ago

Just add: self._originalImageWidth = canvas.width; self._originalImageHeight = canvas.height;

on line 1479, as stated in https://github.com/Foliotek/Croppie/pull/711/commits/3e0b9b138ff22d6ca3143d40dde62bbcab8134eb

It seems to be an error in last croppie versions.