{"action":"created","issue":{"url":"https://api.github.com/repos/wvanbergen/chunky_png/issues/82","labels_url":"https://api.github.com/repos/wvanbergen/chunky_png/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/wvanbergen/chunky_png/issues/82/comments","events_url":"https://api.github.com/repos/wvanbergen/chunky_png/issues/82/events","html_url":"https://github.com/wvanbergen/chunky_png/issues/82","id":57304569,"number":82,"title":"When resize a png with square block, it's changed","user":{"login":"snails","id":720285,"avatar_url":"https://avatars.githubusercontent.com/u/720285?v=3","gravatar_id":"","url":"https://api.github.com/users/snails","html_url":"https://github.com/snails","followers_url":"https://api.github.com/users/snails/followers","following_url":"https://api.github.com/users/snails/following{/other_user}","gists_url":"https://api.github.com/users/snails/gists{/gist_id}","starred_url":"https://api.github.com/users/snails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snails/subscriptions","organizations_url":"https://api.github.com/users/snails/orgs","repos_url":"https://api.github.com/users/snails/repos","events_url":"https://api.github.com/users/snails/events{/privacy}","received_events_url":"https://api.github.com/users/snails/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-11T11:31:35Z","updated_at":"2015-02-11T12:10:18Z","closed_at":null,"body":"I have a image that with qrcode, when I resize and zoom in, I find that it changes and lower the recognition capability.\r\nOrigin:\r\n![qr](https://cloud.githubusercontent.com/assets/720285/6146110/1ab04aba-b224-11e4-8e85-b78ecd61f91c.png)\r\nResized:\r\n![hello](https://cloud.githubusercontent.com/assets/720285/6146117/2979740e-b224-11e4-92d1-60fa32a2884d.png)\r\n"},"comment":{"url":"https://api.github.com/repos/wvanbergen/chunky_png/issues/comments/73871626","html_url":"https://github.com/wvanbergen/chunky_png/issues/82#issuecomment-73871626","issue_url":"https://api.github.com/repos/wvanbergen/chunky_png/issues/82","id":73871626,"user":{"login":"wvanbergen","id":15870,"avatar_url":"https://avatars.githubusercontent.com/u/15870?v=3","gravatar_id":"","url":"https://api.github.com/users/wvanbergen","html_url":"https://github.com/wvanbergen","followers_url":"https://api.github.com/users/wvanbergen/followers","following_url":"https://api.github.com/users/wvanbergen/following{/other_user}","gists_url":"https://api.github.com/users/wvanbergen/gists{/gist_id}","starred_url":"https://api.github.com/users/wvanbergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvanbergen/subscriptions","organizations_url":"https://api.github.com/users/wvanbergen/orgs","repos_url":"https://api.github.com/users/wvanbergen/repos","events_url":"https://api.github.com/users/wvanbergen/events{/privacy}","received_events_url":"https://api.github.com/users/wvanbergen/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T12:10:18Z","updated_at":"2015-02-11T12:10:18Z","body":"Scaling down small images always has the risk of deformations, so it's always best to generate these kinds of images in the right size instead of resizing it afterwards.\r\n\r\nHaving said that, ChunkyPNG has two resize algorithms: nearest neighbor and bilinear. Nearest neighbor is the default;  maybe bilinear has better results for you? Try `image.resize_bilinear(width, height)`"}}