{"action":"closed","number":546,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/546","id":15732375,"html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/546","diff_url":"https://github.com/sonata-project/SonataMediaBundle/pull/546.diff","patch_url":"https://github.com/sonata-project/SonataMediaBundle/pull/546.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/546","number":546,"state":"closed","locked":false,"title":"Create CropResizer.php","user":{"login":"todstoychev","id":4498971,"avatar_url":"https://avatars.githubusercontent.com/u/4498971?v=3","gravatar_id":"","url":"https://api.github.com/users/todstoychev","html_url":"https://github.com/todstoychev","followers_url":"https://api.github.com/users/todstoychev/followers","following_url":"https://api.github.com/users/todstoychev/following{/other_user}","gists_url":"https://api.github.com/users/todstoychev/gists{/gist_id}","starred_url":"https://api.github.com/users/todstoychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todstoychev/subscriptions","organizations_url":"https://api.github.com/users/todstoychev/orgs","repos_url":"https://api.github.com/users/todstoychev/repos","events_url":"https://api.github.com/users/todstoychev/events{/privacy}","received_events_url":"https://api.github.com/users/todstoychev/received_events","type":"User","site_admin":false},"body":"This is a new resizer for SonataMediaBundle. It works in any case without deforming the original ratio of the image, but when there are big differences in the image dimensions it resizes original image to the one of the dimensions of the output image and crops the output image from the middle of the resized image.\r\nMe and the team that I am in used this piece of code in the http://casecom.bg . ","created_at":"2014-05-10T10:23:48Z","updated_at":"2016-02-10T10:59:50Z","closed_at":"2016-02-10T10:59:50Z","merged_at":null,"merge_commit_sha":"72f34d1dc22bf387b45a448a69a34decdc3c8859","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/546/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/546/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/546/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/statuses/7f2828009e05e73f0d09b868a84f87fe9636db1c","head":{"label":"todstoychev:patch-1","ref":"patch-1","sha":"7f2828009e05e73f0d09b868a84f87fe9636db1c","user":{"login":"todstoychev","id":4498971,"avatar_url":"https://avatars.githubusercontent.com/u/4498971?v=3","gravatar_id":"","url":"https://api.github.com/users/todstoychev","html_url":"https://github.com/todstoychev","followers_url":"https://api.github.com/users/todstoychev/followers","following_url":"https://api.github.com/users/todstoychev/following{/other_user}","gists_url":"https://api.github.com/users/todstoychev/gists{/gist_id}","starred_url":"https://api.github.com/users/todstoychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todstoychev/subscriptions","organizations_url":"https://api.github.com/users/todstoychev/orgs","repos_url":"https://api.github.com/users/todstoychev/repos","events_url":"https://api.github.com/users/todstoychev/events{/privacy}","received_events_url":"https://api.github.com/users/todstoychev/received_events","type":"User","site_admin":false},"repo":{"id":19638601,"name":"SonataMediaBundle","full_name":"todstoychev/SonataMediaBundle","owner":{"login":"todstoychev","id":4498971,"avatar_url":"https://avatars.githubusercontent.com/u/4498971?v=3","gravatar_id":"","url":"https://api.github.com/users/todstoychev","html_url":"https://github.com/todstoychev","followers_url":"https://api.github.com/users/todstoychev/followers","following_url":"https://api.github.com/users/todstoychev/following{/other_user}","gists_url":"https://api.github.com/users/todstoychev/gists{/gist_id}","starred_url":"https://api.github.com/users/todstoychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todstoychev/subscriptions","organizations_url":"https://api.github.com/users/todstoychev/orgs","repos_url":"https://api.github.com/users/todstoychev/repos","events_url":"https://api.github.com/users/todstoychev/events{/privacy}","received_events_url":"https://api.github.com/users/todstoychev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/todstoychev/SonataMediaBundle","description":"Media management bundle on steroid for Symfony2","fork":true,"url":"https://api.github.com/repos/todstoychev/SonataMediaBundle","forks_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/forks","keys_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/teams","hooks_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/hooks","issue_events_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/issues/events{/number}","events_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/events","assignees_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/assignees{/user}","branches_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/branches{/branch}","tags_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/tags","blobs_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/languages","stargazers_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/stargazers","contributors_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/contributors","subscribers_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/subscribers","subscription_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/subscription","commits_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/contents/{+path}","compare_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/merges","archive_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/downloads","issues_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/issues{/number}","pulls_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/labels{/name}","releases_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/releases{/id}","deployments_url":"https://api.github.com/repos/todstoychev/SonataMediaBundle/deployments","created_at":"2014-05-10T10:15:43Z","updated_at":"2014-05-12T09:57:56Z","pushed_at":"2014-05-10T12:19:54Z","git_url":"git://github.com/todstoychev/SonataMediaBundle.git","ssh_url":"git@github.com:todstoychev/SonataMediaBundle.git","clone_url":"https://github.com/todstoychev/SonataMediaBundle.git","svn_url":"https://github.com/todstoychev/SonataMediaBundle","homepage":"http://sonata-project.org/bundles/media","size":2037,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sonata-project:master","ref":"master","sha":"57407305edfabbe5a0a4503377d387a6c78843ed","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":1059291,"name":"SonataMediaBundle","full_name":"sonata-project/SonataMediaBundle","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/SonataMediaBundle","description":"Media management bundle on steroid for Symfony2","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/releases{/id}","deployments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/deployments","created_at":"2010-11-07T14:41:46Z","updated_at":"2016-02-10T06:19:39Z","pushed_at":"2016-02-09T18:02:30Z","git_url":"git://github.com/sonata-project/SonataMediaBundle.git","ssh_url":"git@github.com:sonata-project/SonataMediaBundle.git","clone_url":"https://github.com/sonata-project/SonataMediaBundle.git","svn_url":"https://github.com/sonata-project/SonataMediaBundle","homepage":"http://sonata-project.org/bundles/media","size":3060,"stargazers_count":295,"watchers_count":295,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":319,"mirror_url":null,"open_issues_count":200,"forks":319,"open_issues":200,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/546"},"html":{"href":"https://github.com/sonata-project/SonataMediaBundle/pull/546"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/546"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/546/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/546/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/546/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataMediaBundle/statuses/7f2828009e05e73f0d09b868a84f87fe9636db1c"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":5,"commits":1,"additions":169,"deletions":0,"changed_files":1}}