Tesseract.pix_write_jpeg — Functionpix_write_jpeg(
filename::AbstractString,
pix::Pix;
quality::Integer = Int32(75),
progressive::Bool = false
)::BoolWrite an image to a file in the JPEG image format. If there is an error false is returned.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | filename | The name of the file to write to. | |
| R | pix | The image to write to the file. | |
| O | quality | Int32(75) | The quality to encode the image at. |
| O | progressive | false | Should the progressive encoding algorithm be used? |
Restriction:
quality- Must be in the range 1 to 100.
Details:
If the file exists it will be overwritten.
pix_write_jpeg(
stream::IO,
pix::Pix;
quality::Integer = Int32(75),
progressive::Bool = false
)::BoolWrite an image to an IO stream in the JPEG image format. If there is an error false is returned.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | stream | The stream to write the image to. | |
| R | pix | The image to write to the stream. | |
| O | quality | Int32(75) | The quality to encode the image at. |
| O | progressive | false | Should the progressive encoding algorithm be used? |
Restriction:
quality- Must be in the range 1 to 100.
pix_write_jpeg(
pix::Pix;
quality::Integer = Int32(75),
progressive::Bool = false
)::BoolWrite an image to a byte array in the JPEG image format. If there is an error nothing is returned.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | pix | The image to write to a byte array. | |
| O | quality | Int32(75) | The quality to encode the image at. |
| O | progressive | false | Should the progressive encoding algorithm be used? |
Restriction:
quality- Must be in the range 1 to 100.