NJpegOptim 0.2.0

.NET 6.0
dotnet add package NJpegOptim --version 0.2.0
NuGet\Install-Package NJpegOptim -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NJpegOptim" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NJpegOptim --version 0.2.0
#r "nuget: NJpegOptim, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NJpegOptim as a Cake Addin
#addin nuget:?package=NJpegOptim&version=0.2.0

// Install NJpegOptim as a Cake Tool
#tool nuget:?package=NJpegOptim&version=0.2.0

MIT licensed NuGet Travis Coverity Scan


A .Net library to wrap the functionality of jpegoptim. Please note that by default jpegoptim modifies the original input files. If you do not want that behavior, please look at the option to set the destination folder.


To create a simple wrapper to allow .Net applications to easily use this program.


  • Install jpegoptim (v1.3.1 or greater)
  • Add a package reference to NJpegOptim in your project
  • Bring down the packages for your project via dotnet restore

Use it:

var opts = new Options {
    MaxQuality = 72,
    StripProperties = StripProperty.All

var jo = new JpegOptim(opts);
var result = await jo.RunAsync("photo.jpg");


I'm happy to accept pull requests. By submitting a pull request, you must be the original author of code, and must not be breaking any laws or contracts.

Otherwise, if you have comments, questions, or complaints, please file issues to this project on the github repo.


NJpegOptim is licensed under the MIT license. See LICENSE.md for more information.


Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 59 3/12/2023
0.1.1 1,050 11/8/2017
0.1.0 855 10/16/2017