{"action":"created","comment":{"url":"https://api.github.com/repos/dainst/cilantro/pulls/comments/222601286","pull_request_review_id":161523994,"id":222601286,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjYwMTI4Ng==","diff_hunk":"@@ -0,0 +1,30 @@\n+import logging\n+import os\n+\n+from PIL import Image as PilImage\n+\n+\n+def scale_image(image_path, max_width, max_height, target_dir):\n+    \"\"\"\n+    Scale the image to the given size.\n+\n+    Open the given image and scales the size to the given values for\n+    width and height.\n+    The new file will be named like the original one with the new size added\n+    with underscores.\n+\n+    Tested working for JPG and TIF.","path":"workers/default/image/image_scaling.py","position":16,"original_position":16,"commit_id":"967e093c302d2631c5faa839f3610e933d2df3fa","original_commit_id":"967e093c302d2631c5faa839f3610e933d2df3fa","user":{"login":"ngrippa","id":31273958,"node_id":"MDQ6VXNlcjMxMjczOTU4","avatar_url":"https://avatars2.githubusercontent.com/u/31273958?v=4","gravatar_id":"","url":"https://api.github.com/users/ngrippa","html_url":"https://github.com/ngrippa","followers_url":"https://api.github.com/users/ngrippa/followers","following_url":"https://api.github.com/users/ngrippa/following{/other_user}","gists_url":"https://api.github.com/users/ngrippa/gists{/gist_id}","starred_url":"https://api.github.com/users/ngrippa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngrippa/subscriptions","organizations_url":"https://api.github.com/users/ngrippa/orgs","repos_url":"https://api.github.com/users/ngrippa/repos","events_url":"https://api.github.com/users/ngrippa/events{/privacy}","received_events_url":"https://api.github.com/users/ngrippa/received_events","type":"User","site_admin":false},"body":"Params noch dokumentieren :)","created_at":"2018-10-04T09:37:58Z","updated_at":"2018-10-04T09:49:13Z","html_url":"https://github.com/dainst/cilantro/pull/77#discussion_r222601286","pull_request_url":"https://api.github.com/repos/dainst/cilantro/pulls/77","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dainst/cilantro/pulls/comments/222601286"},"html":{"href":"https://github.com/dainst/cilantro/pull/77#discussion_r222601286"},"pull_request":{"href":"https://api.github.com/repos/dainst/cilantro/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/dainst/cilantro/pulls/77","id":219629717,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NjI5NzE3","html_url":"https://github.com/dainst/cilantro/pull/77","diff_url":"https://github.com/dainst/cilantro/pull/77.diff","patch_url":"https://github.com/dainst/cilantro/pull/77.patch","issue_url":"https://api.github.com/repos/dainst/cilantro/issues/77","number":77,"state":"open","locked":false,"title":"Add worker task for scaling images","user":{"login":"rhenck","id":446878,"node_id":"MDQ6VXNlcjQ0Njg3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/446878?v=4","gravatar_id":"","url":"https://api.github.com/users/rhenck","html_url":"https://github.com/rhenck","followers_url":"https://api.github.com/users/rhenck/followers","following_url":"https://api.github.com/users/rhenck/following{/other_user}","gists_url":"https://api.github.com/users/rhenck/gists{/gist_id}","starred_url":"https://api.github.com/users/rhenck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhenck/subscriptions","organizations_url":"https://api.github.com/users/rhenck/orgs","repos_url":"https://api.github.com/users/rhenck/repos","events_url":"https://api.github.com/users/rhenck/events{/privacy}","received_events_url":"https://api.github.com/users/rhenck/received_events","type":"User","site_admin":false},"body":"The task takes a maximum width and height and scales the image down.\r\nTested and working for TIFF and JPEG.\r\n\r\nSolves #9375","created_at":"2018-10-02T08:55:33Z","updated_at":"2018-10-04T09:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc065afe3f31eab782d85cc1014b8c51d9a94952","assignee":null,"assignees":[],"requested_reviewers":[{"login":"scuy","id":132811,"node_id":"MDQ6VXNlcjEzMjgxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/132811?v=4","gravatar_id":"","url":"https://api.github.com/users/scuy","html_url":"https://github.com/scuy","followers_url":"https://api.github.com/users/scuy/followers","following_url":"https://api.github.com/users/scuy/following{/other_user}","gists_url":"https://api.github.com/users/scuy/gists{/gist_id}","starred_url":"https://api.github.com/users/scuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scuy/subscriptions","organizations_url":"https://api.github.com/users/scuy/orgs","repos_url":"https://api.github.com/users/scuy/repos","events_url":"https://api.github.com/users/scuy/events{/privacy}","received_events_url":"https://api.github.com/users/scuy/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dainst/cilantro/pulls/77/commits","review_comments_url":"https://api.github.com/repos/dainst/cilantro/pulls/77/comments","review_comment_url":"https://api.github.com/repos/dainst/cilantro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dainst/cilantro/issues/77/comments","statuses_url":"https://api.github.com/repos/dainst/cilantro/statuses/967e093c302d2631c5faa839f3610e933d2df3fa","head":{"label":"dainst:image-scaling","ref":"image-scaling","sha":"967e093c302d2631c5faa839f3610e933d2df3fa","user":{"login":"dainst","id":6999926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5OTk5MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6999926?v=4","gravatar_id":"","url":"https://api.github.com/users/dainst","html_url":"https://github.com/dainst","followers_url":"https://api.github.com/users/dainst/followers","following_url":"https://api.github.com/users/dainst/following{/other_user}","gists_url":"https://api.github.com/users/dainst/gists{/gist_id}","starred_url":"https://api.github.com/users/dainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainst/subscriptions","organizations_url":"https://api.github.com/users/dainst/orgs","repos_url":"https://api.github.com/users/dainst/repos","events_url":"https://api.github.com/users/dainst/events{/privacy}","received_events_url":"https://api.github.com/users/dainst/received_events","type":"Organization","site_admin":false},"repo":{"id":128898411,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg4OTg0MTE=","name":"cilantro","full_name":"dainst/cilantro","private":false,"owner":{"login":"dainst","id":6999926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5OTk5MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6999926?v=4","gravatar_id":"","url":"https://api.github.com/users/dainst","html_url":"https://github.com/dainst","followers_url":"https://api.github.com/users/dainst/followers","following_url":"https://api.github.com/users/dainst/following{/other_user}","gists_url":"https://api.github.com/users/dainst/gists{/gist_id}","starred_url":"https://api.github.com/users/dainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainst/subscriptions","organizations_url":"https://api.github.com/users/dainst/orgs","repos_url":"https://api.github.com/users/dainst/repos","events_url":"https://api.github.com/users/dainst/events{/privacy}","received_events_url":"https://api.github.com/users/dainst/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dainst/cilantro","description":"Task runner for managing long running distributed jobs","fork":false,"url":"https://api.github.com/repos/dainst/cilantro","forks_url":"https://api.github.com/repos/dainst/cilantro/forks","keys_url":"https://api.github.com/repos/dainst/cilantro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dainst/cilantro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dainst/cilantro/teams","hooks_url":"https://api.github.com/repos/dainst/cilantro/hooks","issue_events_url":"https://api.github.com/repos/dainst/cilantro/issues/events{/number}","events_url":"https://api.github.com/repos/dainst/cilantro/events","assignees_url":"https://api.github.com/repos/dainst/cilantro/assignees{/user}","branches_url":"https://api.github.com/repos/dainst/cilantro/branches{/branch}","tags_url":"https://api.github.com/repos/dainst/cilantro/tags","blobs_url":"https://api.github.com/repos/dainst/cilantro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dainst/cilantro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dainst/cilantro/git/refs{/sha}","trees_url":"https://api.github.com/repos/dainst/cilantro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dainst/cilantro/statuses/{sha}","languages_url":"https://api.github.com/repos/dainst/cilantro/languages","stargazers_url":"https://api.github.com/repos/dainst/cilantro/stargazers","contributors_url":"https://api.github.com/repos/dainst/cilantro/contributors","subscribers_url":"https://api.github.com/repos/dainst/cilantro/subscribers","subscription_url":"https://api.github.com/repos/dainst/cilantro/subscription","commits_url":"https://api.github.com/repos/dainst/cilantro/commits{/sha}","git_commits_url":"https://api.github.com/repos/dainst/cilantro/git/commits{/sha}","comments_url":"https://api.github.com/repos/dainst/cilantro/comments{/number}","issue_comment_url":"https://api.github.com/repos/dainst/cilantro/issues/comments{/number}","contents_url":"https://api.github.com/repos/dainst/cilantro/contents/{+path}","compare_url":"https://api.github.com/repos/dainst/cilantro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dainst/cilantro/merges","archive_url":"https://api.github.com/repos/dainst/cilantro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dainst/cilantro/downloads","issues_url":"https://api.github.com/repos/dainst/cilantro/issues{/number}","pulls_url":"https://api.github.com/repos/dainst/cilantro/pulls{/number}","milestones_url":"https://api.github.com/repos/dainst/cilantro/milestones{/number}","notifications_url":"https://api.github.com/repos/dainst/cilantro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dainst/cilantro/labels{/name}","releases_url":"https://api.github.com/repos/dainst/cilantro/releases{/id}","deployments_url":"https://api.github.com/repos/dainst/cilantro/deployments","created_at":"2018-04-10T08:18:33Z","updated_at":"2018-10-02T12:33:07Z","pushed_at":"2018-10-04T09:14:17Z","git_url":"git://github.com/dainst/cilantro.git","ssh_url":"git@github.com:dainst/cilantro.git","clone_url":"https://github.com/dainst/cilantro.git","svn_url":"https://github.com/dainst/cilantro","homepage":"","size":55465,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"dainst:master","ref":"master","sha":"4dbec0d914e5ba671f5b5f9a6c6b4e6da9eb621a","user":{"login":"dainst","id":6999926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5OTk5MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6999926?v=4","gravatar_id":"","url":"https://api.github.com/users/dainst","html_url":"https://github.com/dainst","followers_url":"https://api.github.com/users/dainst/followers","following_url":"https://api.github.com/users/dainst/following{/other_user}","gists_url":"https://api.github.com/users/dainst/gists{/gist_id}","starred_url":"https://api.github.com/users/dainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainst/subscriptions","organizations_url":"https://api.github.com/users/dainst/orgs","repos_url":"https://api.github.com/users/dainst/repos","events_url":"https://api.github.com/users/dainst/events{/privacy}","received_events_url":"https://api.github.com/users/dainst/received_events","type":"Organization","site_admin":false},"repo":{"id":128898411,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg4OTg0MTE=","name":"cilantro","full_name":"dainst/cilantro","private":false,"owner":{"login":"dainst","id":6999926,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5OTk5MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6999926?v=4","gravatar_id":"","url":"https://api.github.com/users/dainst","html_url":"https://github.com/dainst","followers_url":"https://api.github.com/users/dainst/followers","following_url":"https://api.github.com/users/dainst/following{/other_user}","gists_url":"https://api.github.com/users/dainst/gists{/gist_id}","starred_url":"https://api.github.com/users/dainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainst/subscriptions","organizations_url":"https://api.github.com/users/dainst/orgs","repos_url":"https://api.github.com/users/dainst/repos","events_url":"https://api.github.com/users/dainst/events{/privacy}","received_events_url":"https://api.github.com/users/dainst/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dainst/cilantro","description":"Task runner for managing long running distributed jobs","fork":false,"url":"https://api.github.com/repos/dainst/cilantro","forks_url":"https://api.github.com/repos/dainst/cilantro/forks","keys_url":"https://api.github.com/repos/dainst/cilantro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dainst/cilantro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dainst/cilantro/teams","hooks_url":"https://api.github.com/repos/dainst/cilantro/hooks","issue_events_url":"https://api.github.com/repos/dainst/cilantro/issues/events{/number}","events_url":"https://api.github.com/repos/dainst/cilantro/events","assignees_url":"https://api.github.com/repos/dainst/cilantro/assignees{/user}","branches_url":"https://api.github.com/repos/dainst/cilantro/branches{/branch}","tags_url":"https://api.github.com/repos/dainst/cilantro/tags","blobs_url":"https://api.github.com/repos/dainst/cilantro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dainst/cilantro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dainst/cilantro/git/refs{/sha}","trees_url":"https://api.github.com/repos/dainst/cilantro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dainst/cilantro/statuses/{sha}","languages_url":"https://api.github.com/repos/dainst/cilantro/languages","stargazers_url":"https://api.github.com/repos/dainst/cilantro/stargazers","contributors_url":"https://api.github.com/repos/dainst/cilantro/contributors","subscribers_url":"https://api.github.com/repos/dainst/cilantro/subscribers","subscription_url":"https://api.github.com/repos/dainst/cilantro/subscription","commits_url":"https://api.github.com/repos/dainst/cilantro/commits{/sha}","git_commits_url":"https://api.github.com/repos/dainst/cilantro/git/commits{/sha}","comments_url":"https://api.github.com/repos/dainst/cilantro/comments{/number}","issue_comment_url":"https://api.github.com/repos/dainst/cilantro/issues/comments{/number}","contents_url":"https://api.github.com/repos/dainst/cilantro/contents/{+path}","compare_url":"https://api.github.com/repos/dainst/cilantro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dainst/cilantro/merges","archive_url":"https://api.github.com/repos/dainst/cilantro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dainst/cilantro/downloads","issues_url":"https://api.github.com/repos/dainst/cilantro/issues{/number}","pulls_url":"https://api.github.com/repos/dainst/cilantro/pulls{/number}","milestones_url":"https://api.github.com/repos/dainst/cilantro/milestones{/number}","notifications_url":"https://api.github.com/repos/dainst/cilantro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dainst/cilantro/labels{/name}","releases_url":"https://api.github.com/repos/dainst/cilantro/releases{/id}","deployments_url":"https://api.github.com/repos/dainst/cilantro/deployments","created_at":"2018-04-10T08:18:33Z","updated_at":"2018-10-02T12:33:07Z","pushed_at":"2018-10-04T09:14:17Z","git_url":"git://github.com/dainst/cilantro.git","ssh_url":"git@github.com:dainst/cilantro.git","clone_url":"https://github.com/dainst/cilantro.git","svn_url":"https://github.com/dainst/cilantro","homepage":"","size":55465,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dainst/cilantro/pulls/77"},"html":{"href":"https://github.com/dainst/cilantro/pull/77"},"issue":{"href":"https://api.github.com/repos/dainst/cilantro/issues/77"},"comments":{"href":"https://api.github.com/repos/dainst/cilantro/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/dainst/cilantro/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/dainst/cilantro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dainst/cilantro/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/dainst/cilantro/statuses/967e093c302d2631c5faa839f3610e933d2df3fa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ngrippa"}}