LG .paf file format

.paf is an LG proprietary graphics format that was used on their Qualcomm-powered phones.

Very little is known about the file format except that there are multiple versions of it, and a PAF file can contain multiple images in one file (e.g. boot animation).

Versions
As of now, the known versions of PAF go from version 1 to version 4.

The version can be identified by the header at the start of a file. PAF2 files for example start with "PAF2" or  in hex.

PAF files that are a different version than what the phone expects will not display correctly or not display anything at all (such as replacing a PAF4 boot animation with a PAF1 file).