Admit the images a model carries: a list of records with nonblank unique ids, the PNG media type, strict base64 data, and a PNG header inside the subset the viewer decodes.
The header is the IHDR chunk (W3C PNG, 2nd edition, section 11.2.2): a 13-byte body whose bit depth must be 8, colour type 0, 2, 4 or 6, compression, filter and interlace methods 0, and whose edges must be positive and at most AUTO_MOVIE_MAX_TEXTURE_EDGE. Only the first 44 base64 characters are decoded, so a corrupt compressed stream or a wrong checksum after the header passes here and is refused when the viewer decodes the image.
Admit the images a model carries: a list of records with nonblank unique ids, the PNG media type, strict base64 data, and a PNG header inside the subset the viewer decodes.
The header is the IHDR chunk (W3C PNG, 2nd edition, section 11.2.2): a 13-byte body whose bit depth must be 8, colour type 0, 2, 4 or 6, compression, filter and interlace methods 0, and whose edges must be positive and at most
AUTO_MOVIE_MAX_TEXTURE_EDGE. Only the first 44 base64 characters are decoded, so a corrupt compressed stream or a wrong checksum after the header passes here and is refused when the viewer decodes the image.