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?

<width> <height>
1 Like


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

1 Like