This repository has been archived by the owner. It is now read-only.

crystal-png-chunks

A Crystal shard offering low-level access to PNG data. Development has moved to https://codeberg.org/EvanHahn/crystal-png-chunks.

Crystal PNG chunks

A Crystal shard offering low-level access to PNG data.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      png-chunks:
        gitlab: EvanHahn/crystal-png-chunks
    
  2. Run shards install.

Usage

require "png-chunks"

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

reader = PNGChunk::Reader.new(file)

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

crystal-png-chunks

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 20 hours ago
  • March 22, 2021
License

MIT License

Links
Synced at

Mon, 08 Dec 2025 19:57:27 GMT

Languages