Unkown Texture file

Textures, recreate headers, conversions, algorithms and parsing of image files
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Unkown Texture file

Post by rkthelegend »

Does anybody know What type of Texture file is this?

Can anybody convert this to a dds file?

I got it from an android game.


tnx in advance
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: Unkown Texture file

Post by atom0s »

Looks like it's an exif/jpeg file but with a custom header attached to the top part of it.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Unkown Texture file

Post by rkthelegend »

What is this?
You didn't say anything and posted donation link.
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: Unkown Texture file

Post by atom0s »

The file has a custom header on it telling the app how to read/pull the image texture from it. The header contains several sizes, 1 being the full file size, another being the offset to the texture data and the size of said texture data. In this case:

0x0017561C - the full file size
0x00001000 - offset to the image data (points to the 2nd sub-header)
0x0017461C - the image data size

The second chunk/header starts with a string size and string, which is the name of the texture.

0x00000015 - the string size
string: loadingscreen_muevete

Next is another size of the raw EXIF followed by the normal EXIF header bytes 'FF D8'. Afterward is the texture information and data of the image which is in XMP format from the look of it. Basically, it looks like an XMP custom JPEG from Photoshop.

The file contains multiple layers of information about the image due to how its generated.

The EXIF layer shows the image size of 3,556 x 2000.
The XMP layer shows it being a JPEG image made with Photoshop CS6.

Strip the entire first chunk from the file, rename it to .jpg and then you can open it in Photoshop without issue. (Delete the first 4,128 bytes from the file.)

And the donation link is part of my signature, I didn't post it specifically, it's always attached to my posts.