SmallerImages 1.0.0

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

// Install SmallerImages as a Cake Tool
#tool nuget:?package=SmallerImages&version=1.0.0

SmallerImages

If you want to reduce the file size of images uploaded to your Umbraco website, then this is the package for you. You can set a maximum width and height, this package will replace the original image with a smaller cropped version. It also allows you to create another crop of the image, perhaps a smaller preview size image.

To use this in your Umbraco website, the best way to install it is using NuGet:

Nuget Downloads

Install-Package SmallerImages

Then just add these app settings to your web.config file and edit the values accordingly:

<add key="ImageResizeWidth" value="1920" />
<add key="ImageResizeHeight" value="1080" />
<add key="ImageResizeSuffix" value="1080p" />
<add key="ImageResizeKeepOriginal" value="false" />
<add key="ImageResizeUpscale" value="false" />
<add key="ImageResizePreviewWidth" value="240" />
<add key="ImageResizePreviewHeight" value="136" />
<add key="ImageResizePreviewSuffix" value="_preview" />
<add key="ImageResizeMaintainRatio" value="false" />
<add key="ImageResizeApplyToExistingImages" value="true" />

FAQs

  • Does it work with existing images?

    Yes it does, you can enable it by setting this appSetting value to true

    <add key="ImageResizeApplyToExistingImages" value="true" />
    
  • How do I turn off the preview image crop?

    Change these config settings to the values as they are below:

    <add key="ImageResizePreviewWidth" value="0" />
    <add key="ImageResizePreviewHeight" value="0" />
    <add key="ImageResizePreviewSuffix" value="" />
    
  • What happens to the original image?

    It's completely up to you. If you don't want to keep it you can set this value to false, otherwise set it to true.

    <add key="ImageResizeKeepOriginal" value="false" />
    
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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
2.0.0 766 8/27/2020
1.1.1 1,311 11/15/2018
1.1.0 868 11/15/2018
1.0.1 1,204 11/15/2017
1.0.0 1,188 11/14/2017

- first release with 2 resize option. One main and one preview.