Could not load out.ppm

Hi there,

my program does produce an out.ppm file, but if I try opening it, the program just tells me it could not load it.
I don’t really know why, I just created a file, put the pixel values into it, using a doubled loop and then closed.

oh, and yes, I can open the other pics normally :slight_smile:

Does your out.ppm contain the ppm-specific first three lines?

P3
<width> <height>
255
1 Like

yes

oh okay I kinda forgot the \n behind the last row
Thanks! :slight_smile:

1 Like