type image/png.FormatError
23 uses
image/png (current package)
reader.go#L128: type FormatError string
reader.go#L130: func (e FormatError) Error() string { return "png: invalid format: " + string(e) }
reader.go#L132: var chunkOrderError = FormatError("chunk out of order")
reader.go#L141: return FormatError("bad IHDR length")
reader.go#L154: return FormatError("invalid interlace method")
reader.go#L161: return FormatError("non-positive dimension")
reader.go#L232: return FormatError("bad PLTE length")
reader.go#L258: return FormatError("PLTE, color type mismatch")
reader.go#L267: return FormatError("bad tRNS length")
reader.go#L288: return FormatError("bad tRNS length")
reader.go#L301: return FormatError("bad tRNS length")
reader.go#L318: return FormatError("tRNS, color type mismatch")
reader.go#L348: return 0, FormatError("not enough pixel data")
reader.go#L401: return nil, FormatError(err.Error())
reader.go#L404: return nil, FormatError("too much pixel data")
reader.go#L514: return nil, FormatError("not enough pixel data")
reader.go#L546: return nil, FormatError("bad filter type")
reader.go#L865: return FormatError("bad IEND length")
reader.go#L931: return FormatError(fmt.Sprintf("Bad chunk length: %d", length))
reader.go#L951: return FormatError("invalid checksum")
reader.go#L962: return FormatError("not a PNG file")
writer.go#L171: e.err = FormatError("bad palette length: " + strconv.Itoa(len(p)))
writer.go#L604: return FormatError("invalid image size: " + strconv.FormatInt(mw, 10) + "x" + strconv.FormatInt(mh, 10))