Pistitium.JpegFileSizer 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pistitium.JpegFileSizer --version 1.0.8                
NuGet\Install-Package Pistitium.JpegFileSizer -Version 1.0.8                
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="Pistitium.JpegFileSizer" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pistitium.JpegFileSizer --version 1.0.8                
#r "nuget: Pistitium.JpegFileSizer, 1.0.8"                
#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 Pistitium.JpegFileSizer as a Cake Addin
#addin nuget:?package=Pistitium.JpegFileSizer&version=1.0.8

// Install Pistitium.JpegFileSizer as a Cake Tool
#tool nuget:?package=Pistitium.JpegFileSizer&version=1.0.8                

Pistitium.JpegFileSizer

Pistitium.JpegFileSizer provides a class to resize a JPEG image file to optimize size on disk while preserving image quality.

Installation

Install vial Visual Studio Manage Nuget Packages... or download:

https://www.nuget.org/packages/Pistitium.JpegFileSizer

.NET CLI
> dotnet add package Pistitium.JpegFileSizer --version 1.0.X

Usage

using Pistitium.Framework.ImageAndGraphics;

// Subscribing to the following two events is optional since they are nullable
JpegFileResizer.BroadcastStatus += new JpegFileResizer.StatusNotification(OnJpegFileResizerBroadcastStatus);
JpegFileResizer.BroadcastResult += new JpegFileResizer.ResultNotification(OnJpegFileResizerBroadcastResult);
    
// Resize images
JpegFileResizer.ResizeImages(<string: working folder>, <string: ouput folder>, <bool: createThumbNails>);

// The following will create your output folder as a "Resized" folder under the working folder.
JpegFileResizer.ResizeImages(<string: working folder>, <bool: createThumbNails>);

License

MIT

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.10 118 4/18/2024
1.0.9 295 2/14/2023
1.0.8 293 1/18/2023
1.0.6 298 1/9/2023
1.0.5 339 1/3/2023
1.0.4 313 12/17/2022

Added:
public static void ResizeImages(string workingDirectory, bool createThumbnails)

See Readme file