Crowbar::Rules::PNGRule
Inherits Crowbar::Rule < Reference < Object
Structure-preserving rule for Portable Network Graphics (PNG) images. Preserves the 8-byte PNG file signature and valid chunk framing (IHDR, IDAT, IEND, and auxiliary chunks), while mutating header dimensions, bit depths, color types, scanline payloads, or chunk tags, and automatically recalculating 4-byte chunk lengths and CRC32 checksums.
Constants
PNG_SIGNATURE = Bytes[137, 80, 78, 71, 13, 10, 26, 10]
Instance methods
Applies a structure-preserving transformation to the buffer
description
SourceChecks whether the buffer matches the format handled by this rule
name
Source