{"action":"created","issue":{"url":"https://api.github.com/repos/mkoppanen/imagick/issues/68","labels_url":"https://api.github.com/repos/mkoppanen/imagick/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/mkoppanen/imagick/issues/68/comments","events_url":"https://api.github.com/repos/mkoppanen/imagick/issues/68/events","html_url":"https://github.com/mkoppanen/imagick/issues/68","id":56295991,"number":68,"title":"readImage() does not support page access in array style","user":{"login":"jakoch","id":85608,"avatar_url":"https://avatars.githubusercontent.com/u/85608?v=3","gravatar_id":"","url":"https://api.github.com/users/jakoch","html_url":"https://github.com/jakoch","followers_url":"https://api.github.com/users/jakoch/followers","following_url":"https://api.github.com/users/jakoch/following{/other_user}","gists_url":"https://api.github.com/users/jakoch/gists{/gist_id}","starred_url":"https://api.github.com/users/jakoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakoch/subscriptions","organizations_url":"https://api.github.com/users/jakoch/orgs","repos_url":"https://api.github.com/users/jakoch/repos","events_url":"https://api.github.com/users/jakoch/events{/privacy}","received_events_url":"https://api.github.com/users/jakoch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-02T21:30:10Z","updated_at":"2015-02-02T23:04:42Z","closed_at":null,"body":"Example case: extract page 1 of a pdf file and save it as jpg image.\r\n\r\n```\r\n$i = new Imagick();\r\n$i->setResolution(180,180);\r\n$i->readImage('/path/to/file.pdf[0]'); // unsupported syntax\r\n$i->setImageFormat('jpeg');\r\n$i->writeImage('/path/to/file.jpg');\r\n$i->clear();\r\n$i->destroy();\r\n```\r\n\r\nResults in:\r\n```\r\n\"Fatal error: Uncaught exception 'ImagickException' with message 'Invalid filename provided' Imagick->readImage()\"\r\n```\r\n\r\nReferencing: \r\n- http://stackoverflow.com/q/28286358/1163786\r\n- http://stackoverflow.com/q/11114747/1163786"},"comment":{"url":"https://api.github.com/repos/mkoppanen/imagick/issues/comments/72558049","html_url":"https://github.com/mkoppanen/imagick/issues/68#issuecomment-72558049","issue_url":"https://api.github.com/repos/mkoppanen/imagick/issues/68","id":72558049,"user":{"login":"jakoch","id":85608,"avatar_url":"https://avatars.githubusercontent.com/u/85608?v=3","gravatar_id":"","url":"https://api.github.com/users/jakoch","html_url":"https://github.com/jakoch","followers_url":"https://api.github.com/users/jakoch/followers","following_url":"https://api.github.com/users/jakoch/following{/other_user}","gists_url":"https://api.github.com/users/jakoch/gists{/gist_id}","starred_url":"https://api.github.com/users/jakoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakoch/subscriptions","organizations_url":"https://api.github.com/users/jakoch/orgs","repos_url":"https://api.github.com/users/jakoch/repos","events_url":"https://api.github.com/users/jakoch/events{/privacy}","received_events_url":"https://api.github.com/users/jakoch/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T23:04:42Z","updated_at":"2015-02-02T23:04:42Z","body":"Thank you for testing, Danack.\r\n\r\nCould you test the following line and report back if this work, too (if so i can close the issue).\r\n`$imagick->readImage('images/LayerTest.psd[2]');`\r\n"}}