{"action":"created","issue":{"url":"https://api.github.com/repos/idno/Known/issues/1076","labels_url":"https://api.github.com/repos/idno/Known/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/idno/Known/issues/1076/comments","events_url":"https://api.github.com/repos/idno/Known/issues/1076/events","html_url":"https://github.com/idno/Known/issues/1076","id":109869455,"number":1076,"title":"Idno photo post not posting to twitter due to filesize (feature request / issue)","user":{"login":"srcr","id":1507320,"avatar_url":"https://avatars.githubusercontent.com/u/1507320?v=3","gravatar_id":"","url":"https://api.github.com/users/srcr","html_url":"https://github.com/srcr","followers_url":"https://api.github.com/users/srcr/followers","following_url":"https://api.github.com/users/srcr/following{/other_user}","gists_url":"https://api.github.com/users/srcr/gists{/gist_id}","starred_url":"https://api.github.com/users/srcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srcr/subscriptions","organizations_url":"https://api.github.com/users/srcr/orgs","repos_url":"https://api.github.com/users/srcr/repos","events_url":"https://api.github.com/users/srcr/events{/privacy}","received_events_url":"https://api.github.com/users/srcr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-05T19:32:41Z","updated_at":"2015-11-12T23:40:07Z","closed_at":null,"body":"As you can see in the attached picture an upload of a iPhone picture to known with forward posting to twitter fails due to filesize I think known should check this and resize the image accordingly.\r\n\r\n![2015-09-23 09 37 36](https://cloud.githubusercontent.com/assets/1507320/10291134/4d7d63b8-6ba8-11e5-8603-d634d9da9027.png)\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27181867-idno-photo-post-not-posting-to-twitter-due-to-filesize-feature-request-issue?utm_campaign=plugin&utm_content=tracker%2F300028&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F300028&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/idno/Known/issues/comments/156272123","html_url":"https://github.com/idno/Known/issues/1076#issuecomment-156272123","issue_url":"https://api.github.com/repos/idno/Known/issues/1076","id":156272123,"user":{"login":"funwhilelost","id":127476,"avatar_url":"https://avatars.githubusercontent.com/u/127476?v=3","gravatar_id":"","url":"https://api.github.com/users/funwhilelost","html_url":"https://github.com/funwhilelost","followers_url":"https://api.github.com/users/funwhilelost/followers","following_url":"https://api.github.com/users/funwhilelost/following{/other_user}","gists_url":"https://api.github.com/users/funwhilelost/gists{/gist_id}","starred_url":"https://api.github.com/users/funwhilelost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funwhilelost/subscriptions","organizations_url":"https://api.github.com/users/funwhilelost/orgs","repos_url":"https://api.github.com/users/funwhilelost/repos","events_url":"https://api.github.com/users/funwhilelost/events{/privacy}","received_events_url":"https://api.github.com/users/funwhilelost/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T23:40:07Z","updated_at":"2015-11-12T23:40:07Z","body":"It looks like the Twitter plug-in might be sending the raw original file, not a GD-resized version: `$bytes = \\Idno\\Entities\\File::getFileDataFromAttachment($attachment)`.  Just a shot in the dark from browsing the code."}}