{"action":"created","issue":{"url":"https://api.github.com/repos/oliver-moran/jimp/issues/85","labels_url":"https://api.github.com/repos/oliver-moran/jimp/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/oliver-moran/jimp/issues/85/comments","events_url":"https://api.github.com/repos/oliver-moran/jimp/issues/85/events","html_url":"https://github.com/oliver-moran/jimp/issues/85","id":123283387,"number":85,"title":"Image is resized down and gets bigger file size","user":{"login":"nirber","id":275042,"avatar_url":"https://avatars.githubusercontent.com/u/275042?v=3","gravatar_id":"","url":"https://api.github.com/users/nirber","html_url":"https://github.com/nirber","followers_url":"https://api.github.com/users/nirber/followers","following_url":"https://api.github.com/users/nirber/following{/other_user}","gists_url":"https://api.github.com/users/nirber/gists{/gist_id}","starred_url":"https://api.github.com/users/nirber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirber/subscriptions","organizations_url":"https://api.github.com/users/nirber/orgs","repos_url":"https://api.github.com/users/nirber/repos","events_url":"https://api.github.com/users/nirber/events{/privacy}","received_events_url":"https://api.github.com/users/nirber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T13:54:21Z","updated_at":"2015-12-22T10:47:01Z","closed_at":null,"body":"```javascript\r\nJimp.read(file.buffer, function (err, image) {\r\n    image\r\n      .resize(SmallerWidth, Jimp.AUTO)\r\n      .getBuffer(Jimp.MIME_JPEG, function(err, buffer){\r\n        s3Upload(buffer);\r\n      });\r\n });\r\n```\r\n\r\nNew smaller image has larger file size (in some cases even 4 times larger)."},"comment":{"url":"https://api.github.com/repos/oliver-moran/jimp/issues/comments/166579201","html_url":"https://github.com/oliver-moran/jimp/issues/85#issuecomment-166579201","issue_url":"https://api.github.com/repos/oliver-moran/jimp/issues/85","id":166579201,"user":{"login":"skoa-h","id":4972131,"avatar_url":"https://avatars.githubusercontent.com/u/4972131?v=3","gravatar_id":"","url":"https://api.github.com/users/skoa-h","html_url":"https://github.com/skoa-h","followers_url":"https://api.github.com/users/skoa-h/followers","following_url":"https://api.github.com/users/skoa-h/following{/other_user}","gists_url":"https://api.github.com/users/skoa-h/gists{/gist_id}","starred_url":"https://api.github.com/users/skoa-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skoa-h/subscriptions","organizations_url":"https://api.github.com/users/skoa-h/orgs","repos_url":"https://api.github.com/users/skoa-h/repos","events_url":"https://api.github.com/users/skoa-h/events{/privacy}","received_events_url":"https://api.github.com/users/skoa-h/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T10:47:01Z","updated_at":"2015-12-22T10:47:01Z","body":"I don't think this is a bug, because the default quality setting for jpg is 100%, so there is almost no loss even if the source image had a e.g. 60% encoding. JPGs are always reencoded."}}