MAUS.Cloudinary 1.2.2

dotnet add package MAUS.Cloudinary --version 1.2.2
                    
NuGet\Install-Package MAUS.Cloudinary -Version 1.2.2
                    
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="MAUS.Cloudinary" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MAUS.Cloudinary" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="MAUS.Cloudinary" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MAUS.Cloudinary --version 1.2.2
                    
#r "nuget: MAUS.Cloudinary, 1.2.2"
                    
#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.
#:package MAUS.Cloudinary@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MAUS.Cloudinary&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=MAUS.Cloudinary&version=1.2.2
                    
Install as a Cake Tool

cloudinary-umbraco-module

This will give you the possibility to reroute your media folder to cloudinary.com using "Auto upload mapping" feature.

License

The code is released under the MIT License. There is no limitation for both academic and commercial usage.

Deployment

1.) Increase version in Project Properties → Assembly Information

2.) Build Cloudinary project using Release configuration

3.) Increase version in Cloudinary.nuspec

4.) Run nuget.bat and enter new version in format x.y.z

5.) Upload package to https://www.nuget.org

Instructions

After you have created an account with https://cloudinary.com and installed nuget package, you will need to change this value in web.config :

<add key="CloudinaryUrl" value="https://res.cloudinary.com/youraccount/image/upload/media/" />

After that all your links to /media/ will be routed to cloudinary.

If you want to crop the image use this extension method:

public static class IPublishedContentExtensions
{
    public static string Crop(this IPublishedContent image, int width)
    {
        if (image == null) return string.Empty;
        return image.Url.Replace("/media/", "/media/{{crop-" + width + "/{{m}}/");
    }
}
<img src="@Umbraco.TypedMedia(id).Crop(100)" />
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.2 593 10/17/2022
1.2.0 1,108 11/2/2021
1.0.8 443 11/2/2021
1.0.7 448 11/2/2021
1.0.6 444 11/2/2021
1.0.5 487 11/1/2021
1.0.4 14,870 7/27/2021
1.0.3 2,266 7/15/2021
1.0.2 482 7/15/2021
1.0.1 486 7/15/2021
1.0.0 462 7/15/2021