U4-6572 - MediaService.GetMediaByPath doesn't work with ImageCropper

Created by Mark Bowser 29 Apr 2015, 17:37:48 Updated by Shannon Deminick 26 Jun 2017, 07:11:21

I have run into this issue with umb 7.1.8 and glanced at the umbraco source and it looks like the issue is present on umb 7.2.4 as well.

Services.MediaService.GetMediaByPath(...) needs to be able to get the media by path if the media is uploaded through ImageCropper. Right now, it is assuming the media path to be stored. When ImageCropper is used, the data is stored as JSON, and the media service isn't able to find the media path.

{ "focalPoint": { "left": 0.2475, "top": 0.44318181818181818 }, "src": "/media/1005/hometeaser_italy.jpg", "crops": [ { "alias": "Big Crop", "width": 100, "height": 800, "coordinates": { "x1": 0.17734343434343436, "y1": 0, "x2": 0.76754292929292933, "y2": 0 } }, { "alias": "Small Crop", "width": 40, "height": 40 }, { "alias": "Banner Crop", "width": 1200, "height": 100 } ] }

Comments

Shannon Deminick 26 Jun 2017, 07:11:22

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category: Extensibility

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.8, 7.2.2, 7.2.3, 7.2.4

Due in version:

Sprint:

Story Points:

Cycle: