karansher / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 0 forks source link

Can't read from png #57

Closed yi1z closed 1 year ago

yi1z commented 1 year ago

All my ppm files appear to be 0kb, and so I checked the size of the rgba returned by the function read_rgba_from_png and it appears to be 0, can someone help me with this I've spent hours on this problem image

yi1z commented 1 year ago

Also the width and height appear to be weird as well image

abhimadan commented 1 year ago

This is the same issue several other students have encountered where their executable isn't being run from the correct place. Carefully read the FAQ on the github readme for this assignment, and also take a look at past issues (both open and closed) in this repo for more detailed explanations. From your screenshots, I strongly suspect you just opened the project without running cmake .. from the command line, so you need to delete the contents of your build folder and run cmake .. from there.

yi1z commented 1 year ago

Thank you I've solved the problem!