Merge pull request #3501 from shooorf/master

Check if image does not require resizing
pull/4099/head
Alexey 6 years ago committed by GitHub
commit 53160fa666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/image.c

@ -1289,6 +1289,8 @@ float bilinear_interpolate(image im, float x, float y, int c)
image resize_image(image im, int w, int h) image resize_image(image im, int w, int h)
{ {
if (im.w == w && im.h == h) return copy_image(im);
image resized = make_image(w, h, im.c); image resized = make_image(w, h, im.c);
image part = make_image(w, im.h, im.c); image part = make_image(w, im.h, im.c);
int r, c, k; int r, c, k;

Loading…
Cancel
Save