{"action":"opened","issue":{"url":"https://api.github.com/repos/claviska/SimpleImage/issues/81","labels_url":"https://api.github.com/repos/claviska/SimpleImage/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/claviska/SimpleImage/issues/81/comments","events_url":"https://api.github.com/repos/claviska/SimpleImage/issues/81/events","html_url":"https://github.com/claviska/SimpleImage/issues/81","id":74769560,"number":81,"title":"36 Megapixel image causes gd-png error: cannot allocate image data","user":{"login":"sexyzane","id":5873880,"avatar_url":"https://avatars.githubusercontent.com/u/5873880?v=3","gravatar_id":"","url":"https://api.github.com/users/sexyzane","html_url":"https://github.com/sexyzane","followers_url":"https://api.github.com/users/sexyzane/followers","following_url":"https://api.github.com/users/sexyzane/following{/other_user}","gists_url":"https://api.github.com/users/sexyzane/gists{/gist_id}","starred_url":"https://api.github.com/users/sexyzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sexyzane/subscriptions","organizations_url":"https://api.github.com/users/sexyzane/orgs","repos_url":"https://api.github.com/users/sexyzane/repos","events_url":"https://api.github.com/users/sexyzane/events{/privacy}","received_events_url":"https://api.github.com/users/sexyzane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-09T22:12:18Z","updated_at":"2015-05-09T22:12:18Z","closed_at":null,"body":"Hello, I'm trying to integrate your class into a project where I've to work with some pretty big files.\r\n\r\nThe following code tries to resizes the $path image (32 bit PNG, ~11.000 pixel) to a 1000x1000 image, but fails with this error:\r\n\r\n`Parse error: imagecreatefrompng(): gd-png error: cannot allocate image data in /home/simpleimage/SimpleImage.php on line 1105`\r\n\r\nEven if the whole thing (should require less than 256MB)[http://www.dotsamazing.com/en/labs/phpmemorylimit], my php.ini has `memory_limit = 512M`.\r\n\r\nThe main bugreport is: I think your class should throw an exception for this\r\n\r\nSecond bug: this smells like multiple object are being created. Could you please look into it?\r\n\r\nThanks!"}}