SeeSharpRun.ImageOptimizer 1.0.0

dotnet tool install --global SeeSharpRun.ImageOptimizer --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SeeSharpRun.ImageOptimizer --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SeeSharpRun.ImageOptimizer&version=1.0.0
                    
nuke :add-package SeeSharpRun.ImageOptimizer --version 1.0.0
                    

Image Parser

A .NET command-line tool for optimizing image files. This tool reduces file sizes while maintaining quality by compressing PNG and JPG images in single files or entire directories.

Arguments

Short Argument Full Argument Description Notes
-f --file Name of single file to optimize
-p --path Directory containing multiple files to optimize
-t --types List of file types to match Only relevant for directories and defaults to .png and .jpg
-h --help Renders help metadata

You should only specify --file or --path. If you specify both, --file takes priority.

Prerequisites

Dynamically run package

Run the tool directly without installation using dnx:

dnx SeeSharpRun.ImageOptimizer --file "<file>"
dnx SeeSharpRun.ImageOptimizer --path "<directory>"
dnx SeeSharpRun.ImageOptimizer --path "<directory>" --types ".png" --types ".jpg"

Install package

Install the tool globally on your machine:

dotnet tool install --global SeeSharpRun.ImageOptimizer

After installation, run using dotnet tool run:

dotnet tool run SeeSharpRun.ImageOptimizer --file "<file>"
dotnet tool run SeeSharpRun.ImageOptimizer --path "<directory>"
dotnet tool run SeeSharpRun.ImageOptimizer --path "<directory>" --types ".png" --types ".jpg"

Or use the shorter command alias:

imageoptimize --file "<file>"
imageoptimize --path "<directory>"
imageoptimize --path "<directory>" --types ".png" --types ".jpg"

Run in dev

For development and testing, run directly from source:

dotnet run tool.cs -- --file "<file>"
dotnet run tool.cs -- --path "<directory>"
dotnet run tool.cs -- --path "<directory>" --types ".png" --types ".jpg"
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 300 11/13/2025