Dianoga.ImageMagick 1.1.0

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

// Install Dianoga.ImageMagick as a Cake Tool
#tool nuget:?package=Dianoga.ImageMagick&version=1.1.0                

Dianoga.ImageMagick

An Add-on to the widely used Dianoga Automatic Image Resizing module by Kamsar.

https://github.com/kamsar/Dianoga

This add-on specifically targets the JPEG image format. It utilizes the ImageMagick portable exe to reduce the overall dimensions of images in Sitecore based on the Media.Resizing.MaxWidth or Media.Resizing.MaxHeight settings.

Installation

Simply install the NuGet package "Dianoga.ImageMagick" (https://www.nuget.org/packages/Dianoga.ImageMagick) into your Sitecore web project, build and deploy to your Sitecore root.

That's it 😃

What Does It Install?

Aside from the files included with Dianoga, Dianoga.ImageMagick includes the following:

  • Dianoga.ImageMagick.dll
  • App_Config\Include\Dianoga\Dianoga.Z.ImageMagick.config
  • App_Data\Dianoga Tools\imagemagick\magic.xml
  • App_Data\Dianoga Tools\imagemagick\magick.exe

Usage

Dianoga.ImageMagick keys off of the following settings included with Sitecore:

  • Media.Resizing.MaxWidth
  • Media.Resizing.MaxHeight

If either Media.Resizing.MaxWidth or Media.Resizing.MaxHeight are set, or if both are set, it will enforce these on the image. Therefore, if an image is requested that has a larger width than is supported in the Media.Resizing.MaxWidth, it will be resized keeping its aspect ratio down to the MaxWidth. The same goes for the height.

To change any of these values, edit App_Config\Include\Dianoga\Dianoga.Z.ImageMagick.config or patch in via a separate config file.

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  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
1.2.4 134,834 2/19/2018
1.2.3 11,720 11/15/2017
1.2.2 926 11/14/2017
1.2.1 979 11/8/2017
1.2.0 960 11/8/2017
1.1.1 929 11/7/2017
1.1.0 1,041 11/7/2017
1.0.1 1,150 11/3/2017

Major improvements to algorithm. ImageMagick portion only resizes images based on max dimensions. Original Dianoga JpegTrans used to reduce file size.