MAUS.Cloudinary
1.2.2
dotnet add package MAUS.Cloudinary --version 1.2.2
NuGet\Install-Package MAUS.Cloudinary -Version 1.2.2
<PackageReference Include="MAUS.Cloudinary" Version="1.2.2" />
<PackageVersion Include="MAUS.Cloudinary" Version="1.2.2" />
<PackageReference Include="MAUS.Cloudinary" />
paket add MAUS.Cloudinary --version 1.2.2
#r "nuget: MAUS.Cloudinary, 1.2.2"
#:package MAUS.Cloudinary@1.2.2
#addin nuget:?package=MAUS.Cloudinary&version=1.2.2
#tool nuget:?package=MAUS.Cloudinary&version=1.2.2
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 | Versions 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. |
-
.NETFramework 4.0
- Microsoft.AspNet.Mvc (>= 4.0.20505)
- Microsoft.AspNet.Razor (>= 2.0.20505)
- Microsoft.AspNet.WebPages (>= 2.0.20505)
- Microsoft.Web.Infrastructure (>= 1.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.