Thread with 6 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
@hikari can it save them like that? π€
@eniko apparently yes! not as RGBA, but as RGB at least
@hikari weird that rgba isn't supported o.o