{"action":"opened","issue":{"url":"https://api.github.com/repos/claviska/SimpleImage/issues/149","repository_url":"https://api.github.com/repos/claviska/SimpleImage","labels_url":"https://api.github.com/repos/claviska/SimpleImage/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/claviska/SimpleImage/issues/149/comments","events_url":"https://api.github.com/repos/claviska/SimpleImage/issues/149/events","html_url":"https://github.com/claviska/SimpleImage/issues/149","id":183662208,"number":149,"title":"Bug: overlay png image generates only black rectangle","user":{"login":"demmmmios","id":5690230,"avatar_url":"https://avatars.githubusercontent.com/u/5690230?v=3","gravatar_id":"","url":"https://api.github.com/users/demmmmios","html_url":"https://github.com/demmmmios","followers_url":"https://api.github.com/users/demmmmios/followers","following_url":"https://api.github.com/users/demmmmios/following{/other_user}","gists_url":"https://api.github.com/users/demmmmios/gists{/gist_id}","starred_url":"https://api.github.com/users/demmmmios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demmmmios/subscriptions","organizations_url":"https://api.github.com/users/demmmmios/orgs","repos_url":"https://api.github.com/users/demmmmios/repos","events_url":"https://api.github.com/users/demmmmios/events{/privacy}","received_events_url":"https://api.github.com/users/demmmmios/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T11:39:34Z","updated_at":"2016-10-18T11:39:34Z","closed_at":null,"body":"Hi I found problem when creating overlay image on fixed sized area. Example code:\r\n(origImage i.e. http://www.phpied.com/files/filter/img_filter_grayscale.png)\r\n\r\n```\r\n$origImage= new \\abeautifulsite\\SimpleImage($path);\r\n$origImage->best_fit(500, 500);\r\n\r\n$finalImage = new \\abeautifulsite\\SimpleImage();\r\n$finalImage ->create(500, 500, '#FFFFFF');\r\n$finalImage ->overlay($origImage, 'center', 1);\r\n```\r\n\r\nResult is black rectangle into white 500x500 area. It appears only when origImage is smaller than requested image size. \r\n\r\nTemporary fixed by comenting for loop on line 1303 - // Loop through image pixels and modify alpha for each"}}
{"actor":{"display_login":"demmmmios"}}