Module: Gifenc
- Defined in:
- lib/gifenc.rb,
lib/gif.rb,
lib/util.rb,
lib/image.rb,
lib/errors.rb,
lib/geometry.rb,
lib/extensions.rb,
lib/color_table.rb
Overview
Gifenc is a pure Ruby library to encode, decode and edit GIF files. It aims to eventually support the complete specification. The Gifenc module serves as a namespace to encapsulate the functionality of the entire library.
Defined Under Namespace
Modules: Geometry, Util Classes: ColorTable, Exception, Extension, Gif, Image
Constant Summary collapse
- BLOCK_TERMINATOR =
1-byte block indicating the termination of a sequence of data sub-blocks.
"\x00"
- DISPOSAL_REPLACE =
Fully replace a frame with the next one.
0
- DISPOSAL_NONE =
Do not dispose a frame before displaying the next one.
1
- DISPOSAL_BG =
Restore to background color before displaying the next frame.
2
- DISPOSAL_PREV =
Restore to the previous undisposed frame before displaying the next one.
3
- DEFAULT_DISPOSAL =
Default disposal method to use when it hasn't been explicitly specified.
DISPOSAL_NONE
- DEFAULT_DELAY =
Default frame delay, in 1/100ths of a second, to use when an animated GIF without explicit delay is created.
10
- DEFAULT_COLOR =
Default color index to initialize blank images to.
0
- DEFAULT_TRANS_COLOR =
Default color index to use as transparent for those images which have transparency enabled but which don't have an explicit transparent color set.
0
- DEFAULT_USER_INPUT =
Default value of the deprecated user input flag in graphic control extensions.
false
- DEFAULT_LOOPS =
Default number of times to loop GIF's (
-1
= indefinitely). -1
- DEFAULT_INTERLACE =
Whether to use image interlacing by default.
false
- DEFAULT_BACKGROUND =
Default background color (only for exposed parts of the canvas). Note that this setting is actually ignored by most decoders.
0
- DEFAULT_ASPECT_RATIO =
Default pixel aspect ratio (
0
= square). Note that this setting is ignored by most decoders. 0
- DEFAULT_EXHIBIT_TIME =
Default time to exhibit GIF's last frame when selected (in 1/100ths of sec)
100