We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff3c5b commit 1c8caa9Copy full SHA for 1c8caa9
vendor/assets/javascripts/jquery-fileupload/vendor/load-image.js
@@ -177,8 +177,8 @@
177
(options.maxHeight || height) / height
178
);
179
if (scale < 1) {
180
- width = Math.ceil(width * scale);
181
- height = Math.ceil(height * scale);
+ width = Math.ceil(width);
+ height = Math.ceil(height);
182
}
183
if (img.getContext || (options.canvas && canvas.getContext)) {
184
canvas.width = width;
0 commit comments