Tesseract.pix_read_gif — Functionpix_read_gif(
filename::AbstractString
)::Union{Pix, Nothing}Read a GIF image from the specified file. Returns nothing on error.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | filename | The name of the GIF file to load. |
pix_read_gif(
stream::IO
)::Union{Pix, Nothing}Read a GIF image from the specified stream. Returns nothing on error.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | stream | The IO stream to read the GIF file from. |
Details:
This implementation mirrors the API provided by Leptonica when you pass in a FILE pointer. This assumes that the remainder of the stream contains a GIF image.
pix_read_gif(
data::AbstractArray{UInt8}
)::Union{Pix, Nothing}Read a GIF image from the byte array. Returns nothing on error.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | data | The byte array to read the GIF image from. |