{"action":"created","issue":{"url":"https://api.github.com/repos/gumlet/php-image-resize/issues/106","repository_url":"https://api.github.com/repos/gumlet/php-image-resize","labels_url":"https://api.github.com/repos/gumlet/php-image-resize/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/gumlet/php-image-resize/issues/106/comments","events_url":"https://api.github.com/repos/gumlet/php-image-resize/issues/106/events","html_url":"https://github.com/gumlet/php-image-resize/issues/106","id":308063862,"node_id":"MDU6SXNzdWUzMDgwNjM4NjI=","number":106,"title":"Add additional parameter to \"resizeToBestFit\" that allows to return an image with exact size, requested in parameters.","user":{"login":"glebavladimir","id":25211225,"node_id":"MDQ6VXNlcjI1MjExMjI1","avatar_url":"https://avatars3.githubusercontent.com/u/25211225?v=4","gravatar_id":"","url":"https://api.github.com/users/glebavladimir","html_url":"https://github.com/glebavladimir","followers_url":"https://api.github.com/users/glebavladimir/followers","following_url":"https://api.github.com/users/glebavladimir/following{/other_user}","gists_url":"https://api.github.com/users/glebavladimir/gists{/gist_id}","starred_url":"https://api.github.com/users/glebavladimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebavladimir/subscriptions","organizations_url":"https://api.github.com/users/glebavladimir/orgs","repos_url":"https://api.github.com/users/glebavladimir/repos","events_url":"https://api.github.com/users/glebavladimir/events{/privacy}","received_events_url":"https://api.github.com/users/glebavladimir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-23T15:01:22Z","updated_at":"2018-09-17T17:28:00Z","closed_at":null,"author_association":"NONE","body":"Now, when I call the \"resizeToBestFit\" method it creates an image with the same ratio but different size. Sometimes you need this, but the other time, you get into the cases where you need in return an image that has exact width and height you've put into the parameters. The image shouldn't be scaled, but the rest of it should be filled with transparent\\blanc\\given color.\r\n\r\nEx.:\r\n`public function resizeToBestFit($max_width, $max_height, $allow_enlarge = false, $fill_color = false){}`"},"comment":{"url":"https://api.github.com/repos/gumlet/php-image-resize/issues/comments/422101787","html_url":"https://github.com/gumlet/php-image-resize/issues/106#issuecomment-422101787","issue_url":"https://api.github.com/repos/gumlet/php-image-resize/issues/106","id":422101787,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjEwMTc4Nw==","user":{"login":"felipetnh","id":4269107,"node_id":"MDQ6VXNlcjQyNjkxMDc=","avatar_url":"https://avatars1.githubusercontent.com/u/4269107?v=4","gravatar_id":"","url":"https://api.github.com/users/felipetnh","html_url":"https://github.com/felipetnh","followers_url":"https://api.github.com/users/felipetnh/followers","following_url":"https://api.github.com/users/felipetnh/following{/other_user}","gists_url":"https://api.github.com/users/felipetnh/gists{/gist_id}","starred_url":"https://api.github.com/users/felipetnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipetnh/subscriptions","organizations_url":"https://api.github.com/users/felipetnh/orgs","repos_url":"https://api.github.com/users/felipetnh/repos","events_url":"https://api.github.com/users/felipetnh/events{/privacy}","received_events_url":"https://api.github.com/users/felipetnh/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T17:28:00Z","updated_at":"2018-09-17T17:28:00Z","author_association":"NONE","body":"I can never proper style those blocks of code.\r\nCan you edit and proper style it?"}}
{"actor":{"display_login":"felipetnh"}}