Thread with 3 posts
jump to expanded postmy favourite feature of GIMP lately is that it can read raw RGB8 and RGBA8 image data (no headers). if you give the file a .data extension or pick the right option in the Open dialog, itโll bring up a window for specifying format, width, height, stride etc. great for debugging!
it only supports a handful of formats, alas, but itโs more than adequate for my needs while developing touchHLE. many times Iโve written something like:
let _ = std::fs::write(format!("{}-{}.data", width, height), &rgba8_pixels);
and then I just open -a GIMP filenamehere ^^
if you donโt want to fiddle with entering width/height/etc, it is of course a better idea to use the PPM format, which is so simple to output you could put sample code for it in a tweet. but nothing beats raw data for sheer single-line convenience