From 54d761cf9efa6c77e96855ea80156b0fcd81195d Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Tue, 22 Sep 2015 15:40:15 -0700 Subject: [PATCH] resize image width 1 >< --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index fa48678e..52093285 100644 --- a/src/image.c +++ b/src/image.c @@ -591,7 +591,7 @@ image resize_image(image im, int w, int h) for(r = 0; r < im.h; ++r){ for(c = 0; c < w; ++c){ float val = 0; - if(c == w-1){ + if(c == w-1 || im.w == 1){ val = get_pixel(im, im.w-1, r, k); } else { float sx = c*w_scale;