module PNGChunks

Overview

The PNGChunks module provides low-level access to reading PNG data.

It doesn't deal with pixel data, compression, or actual image decoding. You may wish to use stumpy_png for higher-level operations.

Reading example

file = File.new("12x34.png")

reader = PNGChunks::Reader.new(file)

puts reader.first.type # => "IHDR"
puts reader.first.data # => Bytes[0x00, 0x00, 0x00, 0x0c, ...]

Defined in:

png-chunks.cr

Constant Summary

VERSION = "0.1.0"