Skip to main content
edited the title
Source Link
kzidane
  • 17.7k
  • 3
  • 28
  • 100

Need 1px.bmp and 2px.bmp for pset4 CS50 2015 - How to create a BMP image that is compatible with resize.c not passing check50?

Using my resize.cresize on small.bmpsmall.bmp and smiley.mbpsmiley.bmp then with cs50's peekpeek, I get the exact same values as with the staff's solution for BITMAPFILEHEADERBITMAPFILEHEADER and BITMAPINFOHEADERBITMAPINFOHEADER (I tested with different n values).

However, check50 fails my code for resize onprogram fails that check50 tests with a 1x1-pixel bmpBMP when n is 2, 3 and 4 and onwith a 2x2-pixel bmpBMP when n is 2.

I've tried to get a 1x1 and 2x2 pixel bmpBMP files to test my code on, however the files I've manage to get produce the unsupported file format error.

Where can I get 1x1 and 2x2 pixel bmpBMP files? 

Note: I'm on a macMac. I've installed PaintbrushPaintbrush and SeashoreSeashore to make these filesBMPs, but they don't seem to be compatible with the resize.c code requirementresize and I can't figure out how to fix this.

Need 1px.bmp and 2px.bmp for pset4 CS50 2015 - resize.c not passing check50

Using my resize.c on small.bmp and smiley.mbp then with cs50's peek I get the exact same values as with the staff's solution for BITMAPFILEHEADER and BITMAPINFOHEADER (I tested with different n values).

However, check50 fails my code for resize on 1x1-pixel bmp when n is 2, 3 and 4 and on 2x2-pixel bmp when n is 2.

I've tried to get a 1x1 and 2x2 pixel bmp files to test my code on, however the files I've manage to get produce the unsupported file format error.

Where can I get 1x1 and 2x2 pixel bmp files? Note: I'm on a mac. I've installed Paintbrush and Seashore to make these files but they don't seem to be compatible with the resize.c code requirement and I can't figure out how to fix this.

How to create a BMP image that is compatible with resize?

Using my resize on small.bmp and smiley.bmp then with cs50's peek, I get the exact same values as with the staff's solution for BITMAPFILEHEADER and BITMAPINFOHEADER (I tested with different n values).

However, my program fails that check50 tests with a 1x1-pixel BMP when n is 2, 3 and 4 and with a 2x2-pixel BMP when n is 2.

I've tried to get a 1x1 and 2x2 pixel BMP files to test my code on, however the files I've manage to get produce the unsupported file format error.

Where can I get 1x1 and 2x2 pixel BMP files? 

Note: I'm on a Mac. I've installed Paintbrush and Seashore to make these BMPs, but they don't seem to be compatible with the resize and I can't figure out how to fix this.

Source Link
Touten
  • 23
  • 1
  • 4

Need 1px.bmp and 2px.bmp for pset4 CS50 2015 - resize.c not passing check50

Using my resize.c on small.bmp and smiley.mbp then with cs50's peek I get the exact same values as with the staff's solution for BITMAPFILEHEADER and BITMAPINFOHEADER (I tested with different n values).

However, check50 fails my code for resize on 1x1-pixel bmp when n is 2, 3 and 4 and on 2x2-pixel bmp when n is 2.

I've tried to get a 1x1 and 2x2 pixel bmp files to test my code on, however the files I've manage to get produce the unsupported file format error.

Where can I get 1x1 and 2x2 pixel bmp files? Note: I'm on a mac. I've installed Paintbrush and Seashore to make these files but they don't seem to be compatible with the resize.c code requirement and I can't figure out how to fix this.