Open sparupat opened 9 years ago
hmm, seems you are correct, i shall fix that and release an update shortly
I used the below snippet to fix the resize issue
resizeCanvas.width = options.width; resizeCanvas.height = options.height; var resize_ctx = resizeCanvas.getContext("2d"); resize_ctx.drawImage(resize_img, 0, 0, options.width, options.height); var resize_dataUrl = resizeCanvas.toDataURL(fileData.type);
You should check out this PR if it solves this issue, it contains a refactor to more battle tested javascript library for image resizing in the client: JavaScript-Load-Image
Please try the latest version, this is probably solved now.
I'm still experiencing this issue even after setting {cropSquare:false}. Thoughts?
Can this issue be resolved? I'm currently having trouble uploading non-square images
Hi,
The resize method always resizes the image to square image dimensions, although I provide non square dimensions.
e.g Resizer.resize(files[0], { width: 200, height: 600, cropSquare: false }, function(err, url) {});