cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

can't change canvas height & width in chrome #22

Closed sridevips closed 8 years ago

sridevips commented 8 years ago

I can't able to change my canvas size in chrome browser. Its perfectly work fine in firefox browser. How can i solve this problem?

cstefanache commented 8 years ago

Please let me know if you have the same issue on this plunker: https://embed.plnkr.co/9QMkQQea8tLfFzGVQOzQ/

sridevips commented 8 years ago

Yes... Same like this.

cstefanache commented 8 years ago

You are talking about the cropping canvas? Can you paste a screenshot?

This is how gets rendered for me: image

sridevips commented 8 years ago

This is my error image which is not set error

cstefanache commented 8 years ago

I think that I do not understand the problem. Seems that your cropping canvas has a 400x300 size (that can be changed via canvasSettings canvasWidth, canvasHeight). The resulting image will be saved as base64 data inside a data object that you pass to the cropper. The cropping canvas size cannot be changed at runtime.

Also can you please upgrade to cropper 0.4.6? (seems like you have an older version) Can you please paste a comparison image between firefox and chome to understand the actual and desired functionality?

sridevips commented 8 years ago

Ya sure.. Here I attached screen which i get perfectly right in firefox. My cropper version is "ng2-img-cropper":"0.2.2" error1

I can't move or change size in chrome. but its correctly working fine in firefox.

cstefanache commented 8 years ago

First, please try to upgrade to 0.4.6. As far as I understand you cannot drag the corners to crop the image right?

sridevips commented 8 years ago

yes i cannot drag any corners in any side. ok i'll upgrade to 0.4.6

cstefanache commented 8 years ago

Any news?

cstefanache commented 8 years ago

Is this still an issue?