Skip to content

Common I/O modules

The stegobox.io module provides a number of functions for reading and writing data. They are often just simple wrapper functions around the corresponding functions from the corresponding module imported, although several functions may still provide some additional functionality.

Examples

from stegobox import io

# Read an image
image = io.image.read("path/to/image.png")

# Write an image
io.image.write("path/to/image.png", image)

Tip

Check the next sections for detailed usage examples and references.