Fixed image resizing with un-specified dimension
This commit is contained in:
parent
ebf5a7981f
commit
0d73eb6b1e
@ -92,10 +92,10 @@ class ImageUtil {
|
||||
height = originalHeight;
|
||||
}
|
||||
else if (width == -1) {
|
||||
width = (int) (originalWidth * ratio);
|
||||
width = (int) (height * ratio);
|
||||
}
|
||||
else if (height == -1) {
|
||||
height = (int) (originalHeight / ratio);
|
||||
height = (int) (width / ratio);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user