Pistitium.JpegFileSizer
1.0.8
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
Product | Versions 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.
-
net6.0-windows7.0
- System.Drawing.Common (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added:
public static void ResizeImages(string workingDirectory, bool createThumbnails)
See Readme file