{"action":"created","issue":{"url":"https://api.github.com/repos/aheckmann/gm/issues/469","labels_url":"https://api.github.com/repos/aheckmann/gm/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/aheckmann/gm/issues/469/comments","events_url":"https://api.github.com/repos/aheckmann/gm/issues/469/events","html_url":"https://github.com/aheckmann/gm/issues/469","id":116448207,"number":469,"title":"Error: Command failed: gm convert: Improper image header ","user":{"login":"nrmmota","id":4120514,"avatar_url":"https://avatars.githubusercontent.com/u/4120514?v=3","gravatar_id":"","url":"https://api.github.com/users/nrmmota","html_url":"https://github.com/nrmmota","followers_url":"https://api.github.com/users/nrmmota/followers","following_url":"https://api.github.com/users/nrmmota/following{/other_user}","gists_url":"https://api.github.com/users/nrmmota/gists{/gist_id}","starred_url":"https://api.github.com/users/nrmmota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrmmota/subscriptions","organizations_url":"https://api.github.com/users/nrmmota/orgs","repos_url":"https://api.github.com/users/nrmmota/repos","events_url":"https://api.github.com/users/nrmmota/events{/privacy}","received_events_url":"https://api.github.com/users/nrmmota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-11T23:58:33Z","updated_at":"2015-12-01T16:27:57Z","closed_at":null,"body":"File converts perfectly with command line convert\r\n\r\nconsole# convert image.png  -sharpen 0x.4 -negate -quality 100 -resize 300x200 output.png\r\nconsole# file image.png \r\nimage.png: PNG image data, 91 x 14, 8-bit/color RGB, non-interlaced\r\n\r\nconsele# which convert\r\n/usr/bin/convert\r\nconsole# ls -l /usr/bin/convert\r\nlrwxrwxrwx 1 root root 25 Nov  9 17:55 /usr/bin/convert -> /etc/alternatives/convert\r\nconsole# ls -l /etc/alternatives/convert\r\nlrwxrwxrwx 1 root root 20 Nov  9 17:55 /etc/alternatives/convert -> /usr/bin/convert.im6\r\n\r\nsourcecode I'm trying out:\r\n\tgm(\"image.png\")\r\n\t.resize(300, 200)\r\n\t.quality(100)\r\n\t.sharpen(0.4)\r\n\t.write(\"output.png\", function (err) {\r\n\t  if (err) console.log(err);\r\n\t});\r\n\r\nError in nodejs:\r\n{ [Error: Command failed: gm convert: Improper image header (image.png).\r\n] code: 1, signal: null }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aheckmann/gm/issues/comments/161022015","html_url":"https://github.com/aheckmann/gm/issues/469#issuecomment-161022015","issue_url":"https://api.github.com/repos/aheckmann/gm/issues/469","id":161022015,"user":{"login":"rwky","id":151715,"avatar_url":"https://avatars.githubusercontent.com/u/151715?v=3","gravatar_id":"","url":"https://api.github.com/users/rwky","html_url":"https://github.com/rwky","followers_url":"https://api.github.com/users/rwky/followers","following_url":"https://api.github.com/users/rwky/following{/other_user}","gists_url":"https://api.github.com/users/rwky/gists{/gist_id}","starred_url":"https://api.github.com/users/rwky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwky/subscriptions","organizations_url":"https://api.github.com/users/rwky/orgs","repos_url":"https://api.github.com/users/rwky/repos","events_url":"https://api.github.com/users/rwky/events{/privacy}","received_events_url":"https://api.github.com/users/rwky/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T16:27:57Z","updated_at":"2015-12-01T16:27:57Z","body":"Can you supply image.png?"}}