Knowit.FocusPoint
2.0.0
dotnet add package Knowit.FocusPoint --version 2.0.0
NuGet\Install-Package Knowit.FocusPoint -Version 2.0.0
<PackageReference Include="Knowit.FocusPoint" Version="2.0.0" />
<PackageVersion Include="Knowit.FocusPoint" Version="2.0.0" />
<PackageReference Include="Knowit.FocusPoint" />
paket add Knowit.FocusPoint --version 2.0.0
#r "nuget: Knowit.FocusPoint, 2.0.0"
#:package Knowit.FocusPoint@2.0.0
#addin nuget:?package=Knowit.FocusPoint&version=2.0.0
#tool nuget:?package=Knowit.FocusPoint&version=2.0.0
Knowit Focus Point
Adds PrecentageCoordinates property type for Optimizely that can be used to define FocusPoint property for ImageFile type that gives editors ability to specify focus point of image.
Installation
In order to install it use following command:
dotnet add package Knowit.FocusPoint --source https://www.myget.org/F/creuna-nuget/api/v3/index.json
Usage
Define FocusPoint property for image file, example:
[Display(Order = 10, Name = "Focus point", Description = "Choose the focus point of an image")]
public virtual PercentageCoordinates? FocusPoint { get; set; }
Use focus point property to specify image resize query.
Migration from Creuna.FluidImages
In order to migrate focus point data from old Creuna.FluidImages to the new type from Knowit.FocusPoint a property type conversion must be defined as in the example below:
public class Startup
{
...
public void ConfigureServices(IServiceCollection services)
{
...
services.Configure<PropertyTypeConversionOptions>(x => x.ChangePropertyBackingTypeConversions.Add(
new ChangePropertyBackingTypeConversion
{
OldTypeName = "Creuna.FluidImages.PercentageCoordinatesBackingType, Creuna.FluidImages",
NewTypeName = typeof(PropertyPercentageCoordinates).AssemblyQualifiedName,
}));
...
}
...
}
Known issue: After the first run you will get property type casting error which is a known issue not fully handled yet. A workaround is to restart web application manually (it's a one time action).
Note: Once conversion is performed (in all environments) the property type conversion above can be safely removed. It safe to keep it but recommended to keep start up clean.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- EPiServer.CMS.UI.Core (>= 12.25.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
2.0.0
Target framework is updated to .net 8.0
1.0.1
Remove redundant file references after package installation
1.0.0
First release