{"action":"opened","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1444","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1444/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1444/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1444/events","html_url":"https://github.com/lovell/sharp/issues/1444","id":376453461,"node_id":"MDU6SXNzdWUzNzY0NTM0NjE=","number":1444,"title":"Error: extract_area: bad extract area","user":{"login":"davidgatti","id":411114,"node_id":"MDQ6VXNlcjQxMTExNA==","avatar_url":"https://avatars1.githubusercontent.com/u/411114?v=4","gravatar_id":"","url":"https://api.github.com/users/davidgatti","html_url":"https://github.com/davidgatti","followers_url":"https://api.github.com/users/davidgatti/followers","following_url":"https://api.github.com/users/davidgatti/following{/other_user}","gists_url":"https://api.github.com/users/davidgatti/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgatti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgatti/subscriptions","organizations_url":"https://api.github.com/users/davidgatti/orgs","repos_url":"https://api.github.com/users/davidgatti/repos","events_url":"https://api.github.com/users/davidgatti/events{/privacy}","received_events_url":"https://api.github.com/users/davidgatti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T15:53:45Z","updated_at":"2018-11-01T15:53:45Z","closed_at":null,"author_association":"NONE","body":"I know this error did pop up already in the issue section, but I decided to open a new one, because based on the threads it seams that what I do should work, but it doesn't. Let me explain:\r\n\r\nI'm doing facial recognition, meaning I get the position and resolution where to find the face (bounding box). \r\n\r\n- The original image is: 1280x720\r\n- The face is of size: 236x235\r\n- And the position is: -0.03203125x0.15694444\r\n\r\nI know, a minus value. I get that since AWS Rekognition returns the position in %, which I then convert in to the final position in pixels. From time to time I'll get a negative number - maybe because of a rounding number issue. Regardless – I did put an if statement to check if I get a negative number, and if I do, I replace the value to `0`.\r\n\r\n```\r\n{ left: 0, top: 0, width: 236, height: 235 }\r\n```\r\n\r\nSince we are so close to the edge, I don't need to be that precise. Never the less I get `Error: extract_area: bad extract area`. How can that be? What am I missing?\r\n"}}
{"actor":{"display_login":"davidgatti"}}