Crate papercut

Crate papercut 

Source

Re-exports§

pub use tile::*;
pub use utils::*;

Modules§

tile
The tile module provides the Tile struct and associated methods for managing individual image tiles. A Tile represents a portion of an image, along with metadata such as its position, coordinates, and filename.
utils
The utils module provides utility functions for working with filenames, directories, and image-related operations.

Functions§

calc_columns_rows
Calculate the number of columns and rows required to divide an image into n parts.
get_combined_size
Calculate the combined size of tiles.
get_image_column_row
Determine column and row position for a filename.
join
Combine tiles into a single image.
open_images_in
Open all images in a directory. Return a vector of Tile instances.
save_tiles
Write image files to disk. Create specified folder(s) if they don’t exist. Returns a vector of Tile instances.
slice
Split an image into a specified number of tiles.
validate_image
Basic sanity checks prior to performing a split.
validate_image_col_row
Basic checks for columns and rows values.