This document provides a set of example workflows and use cases to help you get started with the Imageinator image processing tool.
- Using the JAR File
- Basic Image Manipulation
- RGB Channel Operations
- Image Transformations
- Applying Effects
- Advanced Features
- Batch Processing with Scripts
To run a script file use
java -jar Program.jar -file path-of-script-file
To use the interactive test mode use
java -jar Program.jar -text
To use the GUI use
java -jar Program.jar
Load an image:
load images/input.jpg input
Save a processed image:
save images/output.jpg processed-image
Split an image into its RGB components:
rgb-split input input-red input-green input-blue
Recombine the RGB channels into a single image:
rgb-combine input-red input-green input-blue combined
Extract individual color components:
red-component input input-red
green-component input input-green
blue-component input input-blue
Flip an image vertically:
vertical-flip input input-flipped-vert
Flip an image horizontally:
horizontal-flip input input-flipped-horiz
Brighten an image by a specified increment:
brighten input input-brighter 20
Apply a blur effect:
blur input input-blurred
Apply a split-view blur effect:
blur input input-split-blur split 60
Convert an image to sepia:
sepia input input-sepia
Sharpen an image:
sharpen input input-sharpened
Compress an image by a specified percentage:
compress 80 input input-compressed
Create a histogram visualization of an image:
histogram input input-histogram
Automatically correct the colors of an image:
color-correct input input-corrected
Create a script file (e.g., commands.txt) with a series of commands:
load images/input.jpg input
rgb-split input input-red input-green input-blue
brighten input-red input-red-brighter 15
rgb-combine input-red-brighter input-green input-blue input-modified
blur input-modified output-blurred
save images/output.jpg output-blurred
Then, execute the script:
script commands.txt
This script will:
- Load the input image
- Split it into RGB channels
- Brighten the red channel
- Recombine the modified red channel with the original green and blue
- Apply a blur effect
- Save the final processed image
Feel free to experiment with these examples and create your own workflows to suit your image processing needs.
- Refer to the Command Reference for a complete list of available commands and their usage.
- Check the Project Structure section for more details on the internal organization of the Imageinator application.