Save Images with Different Processing in IronOCR
Curtis Chau
Updated: July 6, 2026
How can I save an image with different image processing/image filters applied?
Apply the following simple code example:
// Create a new instance of OcrInput and load the image from a text box input for file path.
OcrInput input = new OcrInput();
input.LoadImage(browsFile_txt.Text);
// Apply a grayscale filter to the image.
input.ToGrayScale();
// Iterate through each page in the OcrInput object.
foreach (var p in input.GetPages())
{
// Save each processed page as an image with a unique timestamped filename.
p.SaveAsImage($"{outputPath}\\{DateTime.Now.ToString("yyyyMMddHHmmss")}.png");
}
C#
For a full list of image optimization filters available in IronOCR, see IronOCR Image Filters.
MSDN-Style Class Documentation - OcrInput Methods

Technical Writer
Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.
...
Read More