{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1478","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1478/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1478/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1478/events","html_url":"https://github.com/lovell/sharp/issues/1478","id":384711372,"node_id":"MDU6SXNzdWUzODQ3MTEzNzI=","number":1478,"title":"Image gets distorted after resizing","user":{"login":"nayram","id":4126912,"node_id":"MDQ6VXNlcjQxMjY5MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/4126912?v=4","gravatar_id":"","url":"https://api.github.com/users/nayram","html_url":"https://github.com/nayram","followers_url":"https://api.github.com/users/nayram/followers","following_url":"https://api.github.com/users/nayram/following{/other_user}","gists_url":"https://api.github.com/users/nayram/gists{/gist_id}","starred_url":"https://api.github.com/users/nayram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayram/subscriptions","organizations_url":"https://api.github.com/users/nayram/orgs","repos_url":"https://api.github.com/users/nayram/repos","events_url":"https://api.github.com/users/nayram/events{/privacy}","received_events_url":"https://api.github.com/users/nayram/received_events","type":"User","site_admin":false},"labels":[{"id":52750126,"node_id":"MDU6TGFiZWw1Mjc1MDEyNg==","url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-27T09:58:17Z","updated_at":"2018-11-28T16:56:04Z","closed_at":null,"author_association":"NONE","body":"Whenever I resize an image I get a distorted image in return. \r\nThe original image\r\n![product-image-633130149](https://user-images.githubusercontent.com/4126912/49073395-47166b80-f22a-11e8-99c3-d2e9bf3cafc4.jpg)\r\n\r\nThe resized image\r\n![product-image-633130149](https://user-images.githubusercontent.com/4126912/49073446-631a0d00-f22a-11e8-8eba-d32b9e58fd7e.jpg)\r\n\r\nThis is how the code looks like\r\n`sharp(fileObj.path)\r\n        .resize(640, 640)\r\n        .toFile(path)\r\n        .then(() => {\r\n        }).catch( err => {\r\n        });`\r\n\r\n@lovell What am I missing here?"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/442521492","html_url":"https://github.com/lovell/sharp/issues/1478#issuecomment-442521492","issue_url":"https://api.github.com/repos/lovell/sharp/issues/1478","id":442521492,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjUyMTQ5Mg==","user":{"login":"nayram","id":4126912,"node_id":"MDQ6VXNlcjQxMjY5MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/4126912?v=4","gravatar_id":"","url":"https://api.github.com/users/nayram","html_url":"https://github.com/nayram","followers_url":"https://api.github.com/users/nayram/followers","following_url":"https://api.github.com/users/nayram/following{/other_user}","gists_url":"https://api.github.com/users/nayram/gists{/gist_id}","starred_url":"https://api.github.com/users/nayram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayram/subscriptions","organizations_url":"https://api.github.com/users/nayram/orgs","repos_url":"https://api.github.com/users/nayram/repos","events_url":"https://api.github.com/users/nayram/events{/privacy}","received_events_url":"https://api.github.com/users/nayram/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T16:56:04Z","updated_at":"2018-11-28T16:56:04Z","author_association":"NONE","body":"Hope this will be of help\r\nhttps://gist.github.com/nayram/aa2ed81a5d1666f420ce80217d9e469a"}}
{"actor":{"display_login":"nayram"}}