Foliotek / Croppie

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

Result size{width:n, height:n} not working #790

Open markcofano opened 1 year ago

markcofano commented 1 year ago

Expected Behavior

When I crop and image and save to disk, the resulting image is not the size I expect.

Actual Behavior

The image is the original size of the image pasted

Steps to Reproduce the Problem

1.Find an image of size larger than viewport 1.Paste and save to disk 1.Inspect image on disk size:'viewport' works as expected but image on disk it too small size{width:800,height:400} produced an image on disk that is ORIGINAL SIZE, not as specified

also tried...

size{width:800} does not work at all size{width:800,height:} does not work at all size{800} or size{800,400} does not work

Example Link

[Please recreate your issue using JSbin, JSFiddle, or Codepen.

Specifications

markcofano commented 1 year ago

Croppie Version is 2.6.5 loaded by CDN

https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.css

theodorejb commented 8 months ago

In your JSFiddle example, result size is being set to the string '{width:800,height:450}', but it should be an object (remove the quotes to change the string to an object).