{"action":"created","issue":{"url":"https://api.github.com/repos/hubsy-io/timelapse/issues/4","repository_url":"https://api.github.com/repos/hubsy-io/timelapse","labels_url":"https://api.github.com/repos/hubsy-io/timelapse/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hubsy-io/timelapse/issues/4/comments","events_url":"https://api.github.com/repos/hubsy-io/timelapse/issues/4/events","html_url":"https://github.com/hubsy-io/timelapse/issues/4","id":169042607,"number":4,"title":"Image resizing","user":{"login":"rimutaka","id":5926028,"avatar_url":"https://avatars.githubusercontent.com/u/5926028?v=3","gravatar_id":"","url":"https://api.github.com/users/rimutaka","html_url":"https://github.com/rimutaka","followers_url":"https://api.github.com/users/rimutaka/followers","following_url":"https://api.github.com/users/rimutaka/following{/other_user}","gists_url":"https://api.github.com/users/rimutaka/gists{/gist_id}","starred_url":"https://api.github.com/users/rimutaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rimutaka/subscriptions","organizations_url":"https://api.github.com/users/rimutaka/orgs","repos_url":"https://api.github.com/users/rimutaka/repos","events_url":"https://api.github.com/users/rimutaka/events{/privacy}","received_events_url":"https://api.github.com/users/rimutaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hubsy-io/timelapse/milestones/1","html_url":"https://github.com/hubsy-io/timelapse/milestones/Milestone%201","labels_url":"https://api.github.com/repos/hubsy-io/timelapse/milestones/1/labels","id":1957828,"number":1,"title":"Milestone 1","description":"First milestone","creator":{"login":"eafzali","id":1947365,"avatar_url":"https://avatars.githubusercontent.com/u/1947365?v=3","gravatar_id":"","url":"https://api.github.com/users/eafzali","html_url":"https://github.com/eafzali","followers_url":"https://api.github.com/users/eafzali/followers","following_url":"https://api.github.com/users/eafzali/following{/other_user}","gists_url":"https://api.github.com/users/eafzali/gists{/gist_id}","starred_url":"https://api.github.com/users/eafzali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eafzali/subscriptions","organizations_url":"https://api.github.com/users/eafzali/orgs","repos_url":"https://api.github.com/users/eafzali/repos","events_url":"https://api.github.com/users/eafzali/events{/privacy}","received_events_url":"https://api.github.com/users/eafzali/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-08-23T12:31:14Z","updated_at":"2016-08-30T02:32:57Z","due_on":"2016-08-25T00:00:00Z","closed_at":null},"comments":5,"created_at":"2016-08-03T03:58:53Z","updated_at":"2016-09-02T01:49:35Z","closed_at":null,"body":"Resize images and store them in S3 as per the config file using a λ-function attached to the bucket as a handler for `s3:ObjectCreated:*`.\r\n\r\n```\r\n\"resize\": [\r\n    {\"folder\": \"resized/fhd\", \"width\": 1920, \"height\": 1080, \"compression\": 50}\r\n    {\"folder\": \"resized/hd\", \"width\": 1080, \"height\": 720, \"compression\": 50}\r\n    {\"folder\": \"resized/small\", \"width\": 500, \"height\": 500, \"compression\": 50}\r\n  ],\r\n```\r\n\r\n1. Take the original image from `full` folder.\r\n2. Read `resize` section of the config file.\r\n3. Create and save the resized images into their respective folders. Note, it's S3. Whenever we talk about folders they are just prefixes in object names.\r\n4. The file names of the resized files must be the same for the resized files as for the originals.\r\n5. Set the right mime type and http caching = forever.\r\n6. Make sure there is no original exif data in the resized image. It should be removed altogether. Usually it is what happens by default if all you do is just copy streams, but sometimes processors copy it over. There is a separate issue for copying some of the exif metadata."},"comment":{"url":"https://api.github.com/repos/hubsy-io/timelapse/issues/comments/244262585","html_url":"https://github.com/hubsy-io/timelapse/issues/4#issuecomment-244262585","issue_url":"https://api.github.com/repos/hubsy-io/timelapse/issues/4","id":244262585,"user":{"login":"rimutaka","id":5926028,"avatar_url":"https://avatars.githubusercontent.com/u/5926028?v=3","gravatar_id":"","url":"https://api.github.com/users/rimutaka","html_url":"https://github.com/rimutaka","followers_url":"https://api.github.com/users/rimutaka/followers","following_url":"https://api.github.com/users/rimutaka/following{/other_user}","gists_url":"https://api.github.com/users/rimutaka/gists{/gist_id}","starred_url":"https://api.github.com/users/rimutaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rimutaka/subscriptions","organizations_url":"https://api.github.com/users/rimutaka/orgs","repos_url":"https://api.github.com/users/rimutaka/repos","events_url":"https://api.github.com/users/rimutaka/events{/privacy}","received_events_url":"https://api.github.com/users/rimutaka/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T01:49:35Z","updated_at":"2016-09-02T01:49:35Z","body":"Ehsan, still getting wrong mimes on some images. https://s3.amazonaws.com/hubsy-upwork/cam1/resized/fhd/20160902T133916.016Z.jpg"}}
{"actor":{"display_login":"rimutaka"}}