Resize fails in Check50 but 1x1 pixel images work. I've compared the outcome with the staff implementation and it's the same.
[removed code per academic honesty guidelines]
Resize fails in Check50 but 1x1 pixel images work. I've compared the outcome with the staff implementation and it's the same.
[removed code per academic honesty guidelines]
Padding should be 0x00
. You are writing 0xff
in your copied rows.
To find this, you should resize an image using the staff version and then with your version, and then run diff
on the 2 files. For this pset, testing "visually" will never pick up many of the issues. Use xxd
or peek
or diff
as explained in the pset.