Cropsizes config and upload compatible

Refactors imagecropper and fileupload to use the samen metadata setting
extensions
This commit is contained in:
perploug
2014-02-20 12:58:38 +01:00
parent f8baf343bf
commit c3471ffbc3
7 changed files with 198 additions and 113 deletions

View File

@@ -43,7 +43,8 @@ namespace Umbraco.Web.Models
{
if (HasFocalPoint())
{
sb.Append("?center=" + FocalPoint.Top + "," + FocalPoint.Left);
sb.Append("&mode=crop");
}
else
{
@@ -51,7 +52,6 @@ namespace Umbraco.Web.Models
sb.Append("&mode=crop");
}
}
sb.Append("&width=").Append(crop.Width);