Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Help uncompressing picture file

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
alera
advanced
Posts: 71
Joined: Fri Oct 06, 2006 2:33 am
Has thanked: 14 times
Been thanked: 5 times

Help uncompressing picture file

Post 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
You do not have the required permissions to view the files attached to this post.
szevvy
n00b
Posts: 15
Joined: Thu Sep 21, 2006 7:20 am

Post 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.
User avatar
alera
advanced
Posts: 71
Joined: Fri Oct 06, 2006 2:33 am
Has thanked: 14 times
Been thanked: 5 times

Post 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...
You do not have the required permissions to view the files attached to this post.
Xela
VIP member
VIP member
Posts: 225
Joined: Sun Jul 31, 2005 4:12 am
Been thanked: 1 time

Post by Xela »

How's that?
Image

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.
User avatar
alera
advanced
Posts: 71
Joined: Fri Oct 06, 2006 2:33 am
Has thanked: 14 times
Been thanked: 5 times

Post 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
john_doe

Post by john_doe »

Which game uses these files?
Can you upload the game's exe somewhere?
User avatar
alera
advanced
Posts: 71
Joined: Fri Oct 06, 2006 2:33 am
Has thanked: 14 times
Been thanked: 5 times

Post 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
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
alera
advanced
Posts: 71
Joined: Fri Oct 06, 2006 2:33 am
Has thanked: 14 times
Been thanked: 5 times

Post 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 :(
Post Reply