format - Is it possible to fix a .png file with a hex editor? -
i have bunch of .png files asset folder of android game.i derived assets .obb file. every other file can opened. of these .png files seem not opened. tried many of concerning programs; illustrator, photoshop, gimp, paint , online file viewers. none of them do.
then checked hex code of files , realized files do not start with usual png header is
89 50 4e 47 0d 0a 1a 0a ended with 49 45 4e 44 ae 42 60 82 belongs png format.checked .png signature here
so tried add png header files , saved them. had no idea if gonna work, tried. still not able open files.
so there way open these files images or can kind of data formatted .png , not intended using images?
if adding hex header, how should it?
thanks.
the hex code shows 500 bytes of garbage followed valid png trns chunk. apparently has overwritten beginning of png files. possible, lot of work, create proper ihdr, plte, , possibly other chunks missing. information needed not contained in file you'd need find out elsewhere or experimenting.
the fact has 64-byte trns chunk tells png colortype has 3 (indexed) , bit depth has 8, , suggests there 64 different colors present. palette contents anyone's guess, put in simple 64-entry grayscale palette; make image visible without proper colors.
Comments
Post a Comment