{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/815","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/815/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/815/events","html_url":"https://github.com/lovell/sharp/issues/815","id":230467648,"number":815,"title":"Globally-installed libvips: PNG: Input file is missing or of an unsupported image format","user":{"login":"ickata","id":617081,"avatar_url":"https://avatars0.githubusercontent.com/u/617081?v=3","gravatar_id":"","url":"https://api.github.com/users/ickata","html_url":"https://github.com/ickata","followers_url":"https://api.github.com/users/ickata/followers","following_url":"https://api.github.com/users/ickata/following{/other_user}","gists_url":"https://api.github.com/users/ickata/gists{/gist_id}","starred_url":"https://api.github.com/users/ickata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ickata/subscriptions","organizations_url":"https://api.github.com/users/ickata/orgs","repos_url":"https://api.github.com/users/ickata/repos","events_url":"https://api.github.com/users/ickata/events{/privacy}","received_events_url":"https://api.github.com/users/ickata/received_events","type":"User","site_admin":false},"labels":[{"id":52750126,"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-22T17:37:09Z","updated_at":"2017-05-23T06:32:44Z","closed_at":null,"body":"Hello,\r\n\r\n`sharp` does not resize images for me on CentOS 6. On my local Mac it is working properly, but on CentOS I get this error:\r\n\r\n```\r\nError: Input file is missing or of an unsupported image format\r\nat Error (native)\r\n```\r\n\r\nThe code I am running:\r\n\r\n```\r\nsharp( 'test.png' ).resize( 100 )\r\n      .withoutEnlargement()\r\n      .toFile( 'test-100.png', function ( err ) {\r\n         // here I get the error\r\n         console.log( error );\r\n      });\r\n```\r\n\r\nThe code above is working properly on MacOS. I can confirm that paths are correct and file exists.\r\n\r\nThe CentOS environment is:\r\n\r\n  - CentOS release 6.9 (Final)\r\n  - libvips 8.5.5\r\n  - NodeJS v6.10.3\r\n  - npm 4.6.1\r\n  - gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)\r\n\r\nCan you please advise what the problem could be, or how to debug it properly so we have additional information? Reading the error I blame some of the native libraries..."},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/303303311","html_url":"https://github.com/lovell/sharp/issues/815#issuecomment-303303311","issue_url":"https://api.github.com/repos/lovell/sharp/issues/815","id":303303311,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars0.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2017-05-23T06:32:44Z","updated_at":"2017-05-23T06:32:44Z","body":"It looks like the global install of libvips has been compiled without support for external image formats.\r\n\r\nhttps://github.com/jcupitt/libvips#building-libvips-from-a-source-tarball\r\nhttps://github.com/jcupitt/libvips#optional-dependencies\r\n\r\n(Should Centos 7 be available to you then then these steps are no longer required and it'll save you a lot of time.)"}}
{"actor":{"display_login":"lovell"}}