{"action":"closed","issue":{"url":"https://api.github.com/repos/trntv/yii2-file-kit/issues/60","labels_url":"https://api.github.com/repos/trntv/yii2-file-kit/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/trntv/yii2-file-kit/issues/60/comments","events_url":"https://api.github.com/repos/trntv/yii2-file-kit/issues/60/events","html_url":"https://github.com/trntv/yii2-file-kit/issues/60","id":125044002,"number":60,"title":"file-kit Image Pixelated","user":{"login":"dbd5","id":9496750,"avatar_url":"https://avatars.githubusercontent.com/u/9496750?v=3","gravatar_id":"","url":"https://api.github.com/users/dbd5","html_url":"https://github.com/dbd5","followers_url":"https://api.github.com/users/dbd5/followers","following_url":"https://api.github.com/users/dbd5/following{/other_user}","gists_url":"https://api.github.com/users/dbd5/gists{/gist_id}","starred_url":"https://api.github.com/users/dbd5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbd5/subscriptions","organizations_url":"https://api.github.com/users/dbd5/orgs","repos_url":"https://api.github.com/users/dbd5/repos","events_url":"https://api.github.com/users/dbd5/events{/privacy}","received_events_url":"https://api.github.com/users/dbd5/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-05T20:25:41Z","updated_at":"2016-01-06T18:17:35Z","closed_at":"2016-01-06T18:17:35Z","body":"Hi Eugene,\r\n\r\nSomehow my file upload setup seems to make my small images (mostly about 4kb) pixelated.\r\nI'm not sure if they are processed in any way but what I would really like is that they are not resized at all or processed in any way. How can I achieve that?\r\n\r\nRegards and thanks for your help,\r\n\r\nAdam\r\n_______\r\nPRESENT CONFIG\r\n\r\n             'avatar-upload' => [\r\n                'class' => UploadAction::className(),\r\n                'deleteRoute' => 'avatar-delete',\r\n                'on afterSave' => function ($event) {\r\n                    /* @var $file \\League\\Flysystem\\File */\r\n                    $file = $event->file;\r\n                    $img = ImageManagerStatic::make($file->read())->fit(382, 215);\r\n                    $file->put($img->encode());\r\n                }\r\n            ],\r\n"}}