bluescan / tacentview

An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
377 stars 36 forks source link

not able to open pkm file... #159

Open DIESLTEK710 opened 10 months ago

DIESLTEK710 commented 10 months ago

I have tried to open this pkm file and it wouldnt work... any idea? can you please make the application open this pkm file.

https://drive.google.com/file/d/1x9yHHRunhksRbaTy8cMwIua8f0R9tdlL/view?usp=drive_link

thank you

bluescan commented 10 months ago

The short answer is I'm not sure how to display that image. The fourCC of the file shows "LZ4!". If I try to decompress using https://github.com/lz4/lz4/releases it errors out.

Later in the file (at offset 0x11) you see the "PKM " fourCC (which is odd if it's compressed), but the info for the PKM header that follows does not have valid values for the width/height. It should go 2 char version (valid at '1' '0'), but later on the values the actual (non-encoded) width and height are 0 and 2... so it's not a completely valid pkm header either. Hmm.

bluescan commented 10 months ago

Incidentally the header for a pkm is described here: https://github.com/bluescan/tacent/blob/master/Modules/Image/Src/tImagePKM.cpp

DIESLTEK710 commented 6 months ago

thats strange indeed... thanks for that extra information... these files did use to be pkm and extractable / viewable until recently still looking for someone to possibly help me accomplish this mission