advanced-cropper / vue-advanced-cropper

The advanced vue cropper library that gives you opportunity to create your own croppers suited for any website design
https://advanced-cropper.github.io/vue-advanced-cropper/
Other
931 stars 130 forks source link

Image dimentions are not correct. #180

Closed ijunaid8989 closed 2 years ago

ijunaid8989 commented 2 years ago

I am trying to load vuejs cropper with a binary image such as

{src: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD…phoAcnfPrThTU6H604daAEJpppTTe1MBV70E0L3pO1ID/2QAA', width: 1920, height: 1080, transforms: {…}}
height: 1080
src: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAA
transforms: {rotate: 0, flip: {…}, translateX: 0, translateY: -0.25000000000000616, scaleX: 0.49583333333333335, …}
width: 1920

as a result of an API request.

when I download the actual Image and check the dimensions it says

image

while the image object in

change({ coordinates, image }) {

says:

height: 1080 width: 1920

Am I missing something?

I am adding the actual Image as well.

here

Norserium commented 2 years ago

@ijunaid8989, could you create the sandbox, that reproduces your issue? I can't reproduce it right now with this image. The image has 3840 width and 2160 height in the result.

Norserium commented 2 years ago

@ijunaid8989, any news?

ijunaid8989 commented 2 years ago

Hi, sorry for the delay but you can close the issue now because I have stop working on that issue in the actual repository where I was trying to be create the feature.