Ok I've been working on this for hours and I'm baffled. The header file all matches the staff implementation having checked it through peek.
But when I run resize 4 on small.bmp I get this:
So that is telling me that there's an issue with the vertical resizing and also that I'm probably messing up the padding somewhere?
But I really can't see where I'm going wrong in the code - any help welcome!
EDITED - code removed
fseek(inptr, 54 + (v * (originalwidth * sizeof(RGBTRIPLE)) + originalpadding), SEEK_SET);
is always looping through the same pixels in the input bitmap because you are setting the current position to the same thing every loop.