{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4797","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4797/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4797/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4797/events","html_url":"https://github.com/bcit-ci/CodeIgniter/pull/4797","id":175288617,"number":4797,"title":"Added the ability to have uploaded images automatically resized","user":{"login":"nibblebits","id":10853777,"avatar_url":"https://avatars.githubusercontent.com/u/10853777?v=3","gravatar_id":"","url":"https://api.github.com/users/nibblebits","html_url":"https://github.com/nibblebits","followers_url":"https://api.github.com/users/nibblebits/followers","following_url":"https://api.github.com/users/nibblebits/following{/other_user}","gists_url":"https://api.github.com/users/nibblebits/gists{/gist_id}","starred_url":"https://api.github.com/users/nibblebits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nibblebits/subscriptions","organizations_url":"https://api.github.com/users/nibblebits/orgs","repos_url":"https://api.github.com/users/nibblebits/repos","events_url":"https://api.github.com/users/nibblebits/events{/privacy}","received_events_url":"https://api.github.com/users/nibblebits/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-06T16:13:04Z","updated_at":"2016-09-07T08:36:05Z","closed_at":"2016-09-07T08:36:05Z","pull_request":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/4797","html_url":"https://github.com/bcit-ci/CodeIgniter/pull/4797","diff_url":"https://github.com/bcit-ci/CodeIgniter/pull/4797.diff","patch_url":"https://github.com/bcit-ci/CodeIgniter/pull/4797.patch"},"body":"Take the following code: \r\n`    $config['upload_path'] = './uploads/';\r\n        $config['allowed_types'] = 'gif|jpg|png';\r\n        $config['max_size'] = '100';\r\n        $config['max_width'] = '128';\r\n        $config['max_height'] = '128';\r\n        $config['auto_resize'] = 'true';\r\n\r\n        $this->upload->initialize($config);\r\n        if (!$this->upload->do_upload('image_file')) {\r\n            $data = array('error' => $this->upload->display_errors());\r\n            $this->load->view('test', $data);\r\n        } else {\r\n            die('Upload Success');\r\n        }`\r\n\r\nWith auto_resize set to true any image uploaded thats bigger than 128 by 128 will be resized to 128 by 128."},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments/245213132","html_url":"https://github.com/bcit-ci/CodeIgniter/pull/4797#issuecomment-245213132","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4797","id":245213132,"user":{"login":"narfbg","id":1058011,"avatar_url":"https://avatars.githubusercontent.com/u/1058011?v=3","gravatar_id":"","url":"https://api.github.com/users/narfbg","html_url":"https://github.com/narfbg","followers_url":"https://api.github.com/users/narfbg/followers","following_url":"https://api.github.com/users/narfbg/following{/other_user}","gists_url":"https://api.github.com/users/narfbg/gists{/gist_id}","starred_url":"https://api.github.com/users/narfbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narfbg/subscriptions","organizations_url":"https://api.github.com/users/narfbg/orgs","repos_url":"https://api.github.com/users/narfbg/repos","events_url":"https://api.github.com/users/narfbg/events{/privacy}","received_events_url":"https://api.github.com/users/narfbg/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T08:36:05Z","updated_at":"2016-09-07T08:36:05Z","body":"Image manipulation doesn't belong in a file uploading library."}}
{"actor":{"display_login":"narfbg"}}