HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

BLP JPEG Format

12-10-2002, 01:10 AM#1
Guest
I need some info on the BLP JPEG format. How is the jpeg stored?

I see the JFIF header id, but the data isn't in one piece.
It's all over the place.

How do I hex edit it, so it is a valid JPEG file that I can load
into Paint Shop Pro?
12-10-2002, 10:40 PM#2
Guest
So, no one here knows?
12-10-2002, 10:51 PM#3
BlacKDicK
If just want to convert that, it would be better to use Image Extractor from DjBnJack.

If you're interested on the spec coz you are programming on some language, reply here and i'll post something.
12-13-2002, 09:15 PM#4
Guest
i'm interested in the spec
12-13-2002, 11:13 PM#5
BlacKDicK
BLP Header:
char[4]: file ID ("BLP1")
DWORD: unknown
DWORD: unknown
DWORD: image width
DWORD: image height
DWORD: unknown
DWORD: unknown
DWORD: data offset (from the begining of the file)
DWORD[15]: unknown
DWORD: Jpg header size "h" (usually 0x00000270)

byte[h]: Jpg header

followed by 0 bytes until the begining of the jpeg data.
address=data offset: raw jpeg data till the end of the file

Just grab the Jpg header, merge with jpeg data and you got a JPG pic. Btw, there is another type of BLP "palleted", but I don't remember the specs. Anyway, almost 100% of the BLPs of W3 are JPGs-BLPs , justa a few are Palleted-BLPs.