I am so close to completing resize.c here. The resulting bitmaps look perfect in both xxd and when viewed in Image Viewer. However, the program does not pass any check50 requirements aside from the fact that it exists & compiles. Any guidance is much appreciated.

[hid code behind edit flag per academic honesty guidelines]

1 Answer 1


Be sure to verify the values in the headers. you can do this by resizing a test image using the staff version, then your own, and running

~cs50/pset4/peek staff.bmp student.bmp

to compare. you will find that some of your values are incorrect. Seeing the staff's correct values should help you figure out why yours aren't.

  • Solved! Peek was a great reminder to the negative nature of biHeight. "Why is the height over 4 billion?" ;) Thanks again.
    – bperrydev
    Oct 7, 2015 at 5:33
  • You're welcome. :)
    – curiouskiwi
    Oct 7, 2015 at 6:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .