Open LesterLyu opened 4 years ago
The link to the ppm format in the README.md states that the 70 character line length is a recommendation but doesn't need to be followed.
The main.cpp file will send the filename to your write_ppm method so you don't have to worry about it. The code will output the grayscale image as gray.ppm.
Should I close this issue?
Two questions here:
The PPM specification says:
No line should be longer than 70 characters.
Should we follow this? Since longer line can still be opened.
Also the
P2
type seems have the file extension.PGM
instead of.PPM
. What we should do here?