{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3995","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3995/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3995/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/3995/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/3995","id":68215836,"number":3995,"title":"Image Resize Pad Mode Needs New Default - Fix Included","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OrchardCMS/Orchard/labels/resolved","name":"resolved","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/17","html_url":"https://github.com/OrchardCMS/Orchard/milestones/Orchard%201.7.2","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/17/labels","id":1065775,"number":17,"title":"Orchard 1.7.2","description":"Please read our release notes for Orchard 1.7.2:\n[url:http://docs.orchardproject.net/Documentation/Orchard-1-7-2-Release-Notes]\n\n*Please* do not post questions as reviews. Questions should be posted in the Discussions tab, where they will usually get promptly responded to. If you post a question as a review, you will pollute the rating, and you won't get an answer.","creator":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":57,"state":"closed","created_at":"2015-04-13T19:41:12Z","updated_at":"2015-04-13T23:11:28Z","due_on":"2013-11-19T08:00:00Z","closed_at":"2015-04-13T19:41:12Z"},"comments":1,"created_at":"2013-09-30T15:07:07Z","updated_at":"2015-04-13T23:11:28Z","closed_at":"2015-04-13T23:11:28Z","body":"@jeffolmstead created:\r\nhttps://orchard.codeplex.com/workitem/20167\r\n\r\nThe Image Resize Pad Mode is described as:\r\n\nPad: adds a padding so that the target image is exactly of width and height.\r\n\nHowever, that is not technically true without adding in the following code:\nsettings.Scale = ScaleMode.Both;\n\nThis forces the scaling of both dimensions whereas in the current code it will not pad out the smaller of the dimensions - described here: http://stackoverflow.com/questions/16823146/incorrect-image-padding\r\n\nI placed the above code in line 45 so it is just applies to the \"pad\" case and won't influence the other defaults.\n"}}