Page 1 of 1
Help uncompressing picture file
Posted: Sun Oct 15, 2006 7:39 am
by alera
Hello :) I was hoping someone could help me out and tell me what type of compression does this picture uses
the uncompressed tim2 is not the same file as the compressed one but it has the same proportions so the output should only difere in picture data
the uncompressed size is 256*256(pixels)+1024(pallet)+256(header) 66816 bytes
both headers have the exact same data
Posted: Sun Oct 15, 2006 3:41 pm
by szevvy
Can you put up a compressed and uncompressed version of the same file? "Differing in picture data" means that the vast majority of data is useless as we can't compare the two.
edit: although, if you're sure the two headers are the same that gives 256 bytes to work with, I guess.
Posted: Sun Oct 15, 2006 7:10 pm
by alera
yes :( sadly only the header is the same
I did not find any 100% equal file but from the header alone I can see it
uses some sort of RLE that compressed repeated data
I didn't find the literal character so I guess it might use come sliding window but compression is not my strong point :(
also I opened the compressed picture to "visualize it" and the compression add 0000 every 32 bytes or more resulting in vertical scan lines in the picture hehe
I hope someone can get at least a clue as to what compression it uses
thank you for your help :)
Thisgs I know:
Headers have same data- first 256 bytes
the pallet is always at the end 1024 bytes
the pallet consists of 4 bytes with the last value always being FF
The uncompressed file size is the same as the uncompresed tim
the compression adds 0000 flollowed by some number( eg E2CD)
every 32 bytes or so...
Posted: Thu Oct 19, 2006 5:57 am
by Xela
How's that?
4 bottom rows is palette in this order :
R (red value) B (blue value) G (green value) FF and so on 256 x
To titred to extract now but maybe tomorow to give this pic nice colors.
Posted: Thu Oct 19, 2006 7:33 am
by alera
Yes the uncomrpessed tims are pretty straight forth :)
but I'm interested in the compressed ones, I want to uncompress them or to atleast have a clue as to what compression they use
the compressed tims(picture I posted) are the ones that have the texture data
Posted: Thu Oct 19, 2006 8:53 am
by john_doe
Which game uses these files?
Can you upload the game's exe somewhere?
Posted: Thu Oct 19, 2006 9:45 am
by alera
The game is biohazard outbreak for ps2
the executable is an elf - executable and linkable format
http://rapidshare.de/files/37307206/elf.RAR.html
I'm really tired ZZzz =_= good night
Posted: Sat Oct 21, 2006 11:21 pm
by Mr.Mouse
This is what xnView gave me for the uncompressed one.
It supports TIM to view and convert to other formats but is not officially supported, I guess that's the reason why I can't convert back to it. If anyone has a program that can, then please help out DRAVEN in the Graphics Files thread.
Posted: Sun Oct 22, 2006 12:16 am
by alera
I see that program has the right palette...
I could code something that will write back to(some) tim2s but I'm too busy right now :(