Skip to content

Commit fdef910

Browse files
edo-zhousilvia-odwyer
authored andcommitted
fix(transform): correct canvas height in resize_img_browser
1 parent b4e3b29 commit fdef910

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crate/src/transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ pub fn resize_img_browser(
225225
let height = resized_img.height();
226226

227227
canvas.set_width(width);
228-
canvas.set_height(width);
228+
canvas.set_height(height);
229229

230230
let new_img_data = ImageData::new_with_u8_clamped_array_and_sh(
231231
Clamped(&mut resized_img.into_bytes()),

0 commit comments

Comments
 (0)