A simple Rust program that splits an image into 4 quadrants, making it suitable for posting on Instagram (which has a 1080px image size limit). This way, you can avoid losing image detail when posting large images by splitting them into smaller, square pieces.
- Splits an image into 4 quadrants.
- Each quadrant is designed for Instagram’s square post format.
- Saves each quadrant as a separate file.
- Cross-platform: Can be compiled on various operating systems.
To build the project, you'll need the following dependencies:
- Rust: The programming language used.
- Image: Used for image manipulation (loading, cropping, saving).
- Rayon: A library for parallel iteration to speed up processing.
- RFD: A library for file dialogs, which allows the user to select input images easily.
- Slint: A UI framework to create a simple interface for interacting with the program.
-
Clone the repository:
git clone https://github.com/pezfisk/RustInstagramSplitter cd RustInstagramSplitter
-
Install the dependencies (make sure you have Rust installed).
-
Build the project using Cargo:
cargo build --release
-
The output binary will be located in the
target/release
directory.
-
Run the program:
cargo run
-
When prompted, select an image file from your file explorer.
This project is licensed under the MIT License - see the LICENSE file for details.