[bug] Stop squimpshing the thumb'd nails
This commit is contained in:
parent
faa8776740
commit
486970692d
|
@ -17,7 +17,7 @@ pub fn thumbnail(bytes: &[u8]) -> ImageResult<(Option<WebPMemory>, u32, u32, Web
|
|||
let scaled = if new_dimm < 400 {
|
||||
cropped
|
||||
} else {
|
||||
original_image.thumbnail_exact(400, 400)
|
||||
cropped.thumbnail_exact(400, 400)
|
||||
}.into_rgba8();
|
||||
let scale = scaled.width();
|
||||
|
||||
|
|
Loading…
Reference in a new issue