class Crego
- Crego
- Reference
- Object
Defined in:
crego.crcrego/adapter.cr
crego/adapter/jpeg.cr
crego/adapter/png.cr
crego/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Class Method Summary
-
.from_b64(data, adapter = nil)
Create a new crego instance from a base64 encoded image
-
.from_io(io, adapter = nil)
Create a new Crego instance from an IO directly
-
.from_slice(slice, adapter = nil)
Create a new Crego instance from a slice of bytes
-
.open(path, adapter = nil)
Create a new Crego instance from a path by opening a file
Instance Method Summary
- #decode
-
#encode(input : String | IO | Slice)
Encode a String, IO, or Slice into the image by modifying its pixels by a very small amount
Class Method Detail
Instance Method Detail
def encode(input : String | IO | Slice)
#
Encode a String, IO, or Slice into the image by modifying its pixels by a very small amount