Module: ChunkyPNG

Defined in:
lib/chunky_png.rb,
lib/chunky_png/chunk.rb,
lib/chunky_png/color.rb,
lib/chunky_png/image.rb,
lib/chunky_png/canvas.rb,
lib/chunky_png/palette.rb,
lib/chunky_png/rmagick.rb,
lib/chunky_png/datastream.rb,
lib/chunky_png/canvas/drawing.rb,
lib/chunky_png/canvas/operations.rb,
lib/chunky_png/canvas/png_decoding.rb,
lib/chunky_png/canvas/png_encoding.rb,
lib/chunky_png/canvas/stream_exporting.rb,
lib/chunky_png/canvas/stream_importing.rb,
lib/chunky_png/canvas/adam7_interlacing.rb

Overview

ChunkyPNG - the pury ruby library to access PNG files.

The ChunkyPNG module defines some constants that are used in the PNG specification.

Author:

  • Willem van Bergen

Defined Under Namespace

Modules: Chunk, Color, RMagick Classes: CRCMismatch, Canvas, Datastream, Exception, ExpectationFailed, Image, NotSupported, OutOfBounds, Palette, SignatureMismatch

Constant Summary collapse

VERSION =

The current version of ChunkyPNG. This value will be updated automatically by them gem:release rake task.

"0.11.0"
COLOR_GRAYSCALE =

PNG international standard defined constants

0
COLOR_TRUECOLOR =
2
COLOR_INDEXED =
3
COLOR_GRAYSCALE_ALPHA =
4
COLOR_TRUECOLOR_ALPHA =
6
FILTERING_DEFAULT =
0
COMPRESSION_DEFAULT =
0
INTERLACING_NONE =
0
INTERLACING_ADAM7 =
1
FILTER_NONE =
0
FILTER_SUB =
1
FILTER_UP =
2
FILTER_AVERAGE =
3
FILTER_PAETH =
4
EMPTY_BYTEARRAY =
String.method_defined?(:force_encoding) ? "".force_encoding('ASCII-8BIT').freeze : "".freeze
EXTRA_BYTE =
String.method_defined?(:force_encoding) ? "\0".force_encoding('ASCII-8BIT') : "\0"