Skip to content

Commit

Permalink
resize image width 1 ><
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreddie committed Sep 22, 2015
1 parent 59e3567 commit 54d761c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 54d761c

Please sign in to comment.