U4-6995 - Image Cropper does not use predefined crop ratio when only width or height is supplied

Created by Mads Krohn 20 Aug 2015, 09:00:05 Updated by Shannon Deminick 01 Sep 2015, 09:29:58

Using this code: image.GetCropUrl(width: 767, cropAlias: "SomeAlias") Image Cropper should generate an image width the supplied width and then use the ratio defined by the predefined crop. However, at the moment, is just uses the ratio of the original image. This should of course also apply when combining a height and a crop alias.

image.GetCropUrl(width: 767) should of course still use the original image ratio.


Jeavon Leopold 20 Aug 2015, 10:51:39

Pull request for @Shandem review here https://github.com/umbraco/Umbraco-CMS/pull/771

Priority: Normal

Type: Bug

State: Fixed

Assignee: Jeavon Leopold

Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.2.8

Due in version: 7.3.0


Story Points: