Skip to content

Commit

Permalink
Crop mode should always be "crop"
Browse files Browse the repository at this point in the history
"pad" doesn't actually crop the image, so information about the focal point is not included in the URL.
  • Loading branch information
abjerner committed Apr 28, 2020
1 parent 09dfa15 commit d8bc78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Skybrud.ImagePicker/Models/ImagePickerImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public ImagePickerImage(IPublishedContent content) {
Width = content.Value<int>(Constants.Conventions.Media.Width);
Height = content.Value<int>(Constants.Conventions.Media.Height);
Url = content.Url;
CropUrl = content.GetCropUrl(Width, Height, preferFocalPoint: true, imageCropMode: ImageCropMode.Pad);
CropUrl = content.GetCropUrl(Width, Height, preferFocalPoint: true, imageCropMode: ImageCropMode.Crop);
AlternativeText = content.Value<string>("altText") ?? string.Empty;
}

Expand Down

0 comments on commit d8bc78c

Please sign in to comment.