Method Image.PNG.__decode()
- Method
__decode
array__decode(stringdata)
array__decode(stringdata,intdontcheckcrc)- Description
Splits a PNG file into chunks.
- Returns
Result is an array of arrays, or 0 if data isn't a PNG file. Each element in the array is constructed as follows.
Array string0The type of the chunk, e.g. "IHDR" or "IDAT".
string1The actual chunk data.
bool2Set to 1 if the checksum is ok and
dontcheckcrcisn't set.- Note
Please read about the PNG file format. Support for decoding cHRM, gAMA, sBIT, hIST, pHYs, tIME, tEXt and zTXt chunks are missing.