Closed LazyDuchess closed 1 year ago
For the time being I'll be doing color picking and some other prost processing to get rid of the black bg. Obvs not ideal but will do for now.
Got it :)
It uses a similar RLE scheme to the .reia
files:
n
.n
is negative:
(-n) + 1
times.n
is positive:
n + 1
unique bytes.Let me see if I can send a pull request to add this to IMGCodec.cs
to get familiarized with the codebase.
Awesome! Cool that you figured out the RLE - I did notice there was some different behavior depending on if the byte was positive or negative but I hadn't thought of this.
The game generates thumbnails as JPEG images, and embeds a custom ALFA block in them to achieve transparency:
The image above is a Sim thumbnail opened with a HEX editor. They don't look terribly complicated to figure out, they're Run Length Encoded.