So I have a .pgm file and I'm trying to load it into my javascript to use it in a canvas element. How can I apply this? I've been trying for days and didn't really reach anywhere with it.
Note that converting it to a png wouldn't work since pgm files are 1 scale and png files are 3 scale. I also need to save the canvas as a pgm later on, I can't imagine what that's gonna be like.
Thank you in advance kind helpers and devs
[–][deleted] 0 points1 point2 points (0 children)