class

Crego

Inherits Reference < Object

Constants

VERSION = "0.1.0"

Class methods

from_b64(data, adapter = nil)

Create a new crego instance from a base64 encoded image

Source
from_io(io, adapter = nil)

Create a new Crego instance from an IO directly

Source
from_slice(slice, adapter = nil)

Create a new Crego instance from a slice of bytes

Source
open(path, adapter = nil)

Create a new Crego instance from a path by opening a file

Source

Instance methods

decode
Source
encode(input : String | IO | Slice)

Encode a String, IO, or Slice into the image by modifying its pixels by a very small amount

Source

Nested types