10 votes

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.

For Umbraco v7 use version 1.1.1 and for Umbraco v8 use version 2.0.0+

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

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" />

Screenshots

 Download package
version 2.0.0

NuGet install instructions for Umbraco 7.6.0-8.18.13

Install-Package SmallerImages

Package owner

Paul Seal

Paul Seal

Paul has 2888 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 8.9.x, 8.6.x, 8.5.x, 8.4.x, 8.3.x, 8.2.x, 8.1.x, 7.7.x

Package Information

  • Package owner: Paul Seal
  • Created: 14/11/2017
  • Current version 2.0.0
  • .NET version 4.5,4.7.2
  • License MIT
  • Downloads on Our: 827
  • Downloads on NuGet: 5.3K
  • Total downloads : 6.2K

External resources