class Crego

Defined in:

crego.cr
crego/adapter.cr
crego/adapter/jpeg.cr
crego/adapter/png.cr
crego/version.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

Instance Method Summary

Class Method Detail

def self.from_b64(data, adapter = nil) #

Create a new crego instance from a base64 encoded image


[View source]
def self.from_io(io, adapter = nil) #

Create a new Crego instance from an IO directly


[View source]
def self.from_slice(slice, adapter = nil) #

Create a new Crego instance from a slice of bytes


[View source]
def self.open(path, adapter = nil) #

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


[View source]

Instance Method Detail

def decode #

[View source]
def encode(input : String | IO | Slice) #

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


[View source]