{"action":"created","comment":{"url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/comments/39890043","id":39890043,"diff_hunk":"@@ -12,6 +12,18 @@ matrix:\n         - python: \"3.4\"\n         - python: \"pypy3\"\n         - python: \"pypy\"\n+before_install:\n+    - identify -version\n+    - convert -list format\n+    - sudo apt-get remove imagemagick\n+    - wget http://www.imagemagick.org/download/releases/ImageMagick-6.9.1-10.tar.xz\n+    - tar xf ImageMagick-6.9.1-10.tar.xz\n+    - cd ImageMagick*\n+    - ./configure --disable-shared --with-openjp2=yes --with-webp=yes --prefix=/usr\n+    - make\n+    - sudo make install","path":".travis.yml","position":13,"original_position":13,"commit_id":"78729e70c8328513c9eb77cb3a96a37ba89bf6de","original_commit_id":"78729e70c8328513c9eb77cb3a96a37ba89bf6de","user":{"login":"guilhermef","id":101073,"avatar_url":"https://avatars.githubusercontent.com/u/101073?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermef","html_url":"https://github.com/guilhermef","followers_url":"https://api.github.com/users/guilhermef/followers","following_url":"https://api.github.com/users/guilhermef/following{/other_user}","gists_url":"https://api.github.com/users/guilhermef/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermef/subscriptions","organizations_url":"https://api.github.com/users/guilhermef/orgs","repos_url":"https://api.github.com/users/guilhermef/repos","events_url":"https://api.github.com/users/guilhermef/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermef/received_events","type":"User","site_admin":false},"body":"I had to install openjpeg21 through brew, then reinstall Pillow.","created_at":"2015-09-18T19:05:42Z","updated_at":"2015-09-18T19:05:42Z","html_url":"https://github.com/thumbor/thumbor-plugins/pull/11#discussion_r39890043","pull_request_url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/comments/39890043"},"html":{"href":"https://github.com/thumbor/thumbor-plugins/pull/11#discussion_r39890043"},"pull_request":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11","id":45303184,"html_url":"https://github.com/thumbor/thumbor-plugins/pull/11","diff_url":"https://github.com/thumbor/thumbor-plugins/pull/11.diff","patch_url":"https://github.com/thumbor/thumbor-plugins/pull/11.patch","issue_url":"https://api.github.com/repos/thumbor/thumbor-plugins/issues/11","number":11,"state":"open","locked":false,"title":"Adds a jpeg2000 encoder ","user":{"login":"okor","id":142910,"avatar_url":"https://avatars.githubusercontent.com/u/142910?v=3","gravatar_id":"","url":"https://api.github.com/users/okor","html_url":"https://github.com/okor","followers_url":"https://api.github.com/users/okor/followers","following_url":"https://api.github.com/users/okor/following{/other_user}","gists_url":"https://api.github.com/users/okor/gists{/gist_id}","starred_url":"https://api.github.com/users/okor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okor/subscriptions","organizations_url":"https://api.github.com/users/okor/orgs","repos_url":"https://api.github.com/users/okor/repos","events_url":"https://api.github.com/users/okor/events{/privacy}","received_events_url":"https://api.github.com/users/okor/received_events","type":"User","site_admin":false},"body":"It currently shells out to imagemagick, like other optimizers. However, it could use PIL. Not sure which is better.\r\n\r\nTo use this plugin\r\n- install the plugins: `cd <thumbor path> && pip install https://github.com/okor/thumbor-plugins/archive/jp2.zip`\r\n- add `'thumbor_plugins.optimizers.jp2'` to the `OPTIMIZERS` array in the thumbor config\r\n- also add your imagemagick path in the htumbor config like `IMAGEMAGICK_PATH = '/usr/local/bin/convert'`\r\n\r\nTo request a jp2 image from Thumbor, add it to the filter list `../filters:format(jp2)/..`","created_at":"2015-09-17T15:18:05Z","updated_at":"2015-09-18T19:05:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a78d7c620e7e6c93811ea63259876796227593e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11/commits","review_comments_url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11/comments","review_comment_url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thumbor/thumbor-plugins/issues/11/comments","statuses_url":"https://api.github.com/repos/thumbor/thumbor-plugins/statuses/78729e70c8328513c9eb77cb3a96a37ba89bf6de","head":{"label":"okor:jp2","ref":"jp2","sha":"78729e70c8328513c9eb77cb3a96a37ba89bf6de","user":{"login":"okor","id":142910,"avatar_url":"https://avatars.githubusercontent.com/u/142910?v=3","gravatar_id":"","url":"https://api.github.com/users/okor","html_url":"https://github.com/okor","followers_url":"https://api.github.com/users/okor/followers","following_url":"https://api.github.com/users/okor/following{/other_user}","gists_url":"https://api.github.com/users/okor/gists{/gist_id}","starred_url":"https://api.github.com/users/okor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okor/subscriptions","organizations_url":"https://api.github.com/users/okor/orgs","repos_url":"https://api.github.com/users/okor/repos","events_url":"https://api.github.com/users/okor/events{/privacy}","received_events_url":"https://api.github.com/users/okor/received_events","type":"User","site_admin":false},"repo":{"id":42596880,"name":"thumbor-plugins","full_name":"okor/thumbor-plugins","owner":{"login":"okor","id":142910,"avatar_url":"https://avatars.githubusercontent.com/u/142910?v=3","gravatar_id":"","url":"https://api.github.com/users/okor","html_url":"https://github.com/okor","followers_url":"https://api.github.com/users/okor/followers","following_url":"https://api.github.com/users/okor/following{/other_user}","gists_url":"https://api.github.com/users/okor/gists{/gist_id}","starred_url":"https://api.github.com/users/okor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okor/subscriptions","organizations_url":"https://api.github.com/users/okor/orgs","repos_url":"https://api.github.com/users/okor/repos","events_url":"https://api.github.com/users/okor/events{/privacy}","received_events_url":"https://api.github.com/users/okor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okor/thumbor-plugins","description":"Optimizers and filters contributed by the Thumbor community","fork":true,"url":"https://api.github.com/repos/okor/thumbor-plugins","forks_url":"https://api.github.com/repos/okor/thumbor-plugins/forks","keys_url":"https://api.github.com/repos/okor/thumbor-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okor/thumbor-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okor/thumbor-plugins/teams","hooks_url":"https://api.github.com/repos/okor/thumbor-plugins/hooks","issue_events_url":"https://api.github.com/repos/okor/thumbor-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/okor/thumbor-plugins/events","assignees_url":"https://api.github.com/repos/okor/thumbor-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/okor/thumbor-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/okor/thumbor-plugins/tags","blobs_url":"https://api.github.com/repos/okor/thumbor-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okor/thumbor-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okor/thumbor-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/okor/thumbor-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okor/thumbor-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/okor/thumbor-plugins/languages","stargazers_url":"https://api.github.com/repos/okor/thumbor-plugins/stargazers","contributors_url":"https://api.github.com/repos/okor/thumbor-plugins/contributors","subscribers_url":"https://api.github.com/repos/okor/thumbor-plugins/subscribers","subscription_url":"https://api.github.com/repos/okor/thumbor-plugins/subscription","commits_url":"https://api.github.com/repos/okor/thumbor-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/okor/thumbor-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/okor/thumbor-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/okor/thumbor-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/okor/thumbor-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/okor/thumbor-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okor/thumbor-plugins/merges","archive_url":"https://api.github.com/repos/okor/thumbor-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okor/thumbor-plugins/downloads","issues_url":"https://api.github.com/repos/okor/thumbor-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/okor/thumbor-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/okor/thumbor-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/okor/thumbor-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okor/thumbor-plugins/labels{/name}","releases_url":"https://api.github.com/repos/okor/thumbor-plugins/releases{/id}","created_at":"2015-09-16T15:44:37Z","updated_at":"2015-09-16T15:44:37Z","pushed_at":"2015-09-17T18:44:32Z","git_url":"git://github.com/okor/thumbor-plugins.git","ssh_url":"git@github.com:okor/thumbor-plugins.git","clone_url":"https://github.com/okor/thumbor-plugins.git","svn_url":"https://github.com/okor/thumbor-plugins","homepage":"http://thumbor.org/","size":220,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thumbor:master","ref":"master","sha":"cae9b3065217bfd7c87d68fd0526627545a13eba","user":{"login":"thumbor","id":6918711,"avatar_url":"https://avatars.githubusercontent.com/u/6918711?v=3","gravatar_id":"","url":"https://api.github.com/users/thumbor","html_url":"https://github.com/thumbor","followers_url":"https://api.github.com/users/thumbor/followers","following_url":"https://api.github.com/users/thumbor/following{/other_user}","gists_url":"https://api.github.com/users/thumbor/gists{/gist_id}","starred_url":"https://api.github.com/users/thumbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thumbor/subscriptions","organizations_url":"https://api.github.com/users/thumbor/orgs","repos_url":"https://api.github.com/users/thumbor/repos","events_url":"https://api.github.com/users/thumbor/events{/privacy}","received_events_url":"https://api.github.com/users/thumbor/received_events","type":"Organization","site_admin":false},"repo":{"id":31958257,"name":"thumbor-plugins","full_name":"thumbor/thumbor-plugins","owner":{"login":"thumbor","id":6918711,"avatar_url":"https://avatars.githubusercontent.com/u/6918711?v=3","gravatar_id":"","url":"https://api.github.com/users/thumbor","html_url":"https://github.com/thumbor","followers_url":"https://api.github.com/users/thumbor/followers","following_url":"https://api.github.com/users/thumbor/following{/other_user}","gists_url":"https://api.github.com/users/thumbor/gists{/gist_id}","starred_url":"https://api.github.com/users/thumbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thumbor/subscriptions","organizations_url":"https://api.github.com/users/thumbor/orgs","repos_url":"https://api.github.com/users/thumbor/repos","events_url":"https://api.github.com/users/thumbor/events{/privacy}","received_events_url":"https://api.github.com/users/thumbor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thumbor/thumbor-plugins","description":"Optimizers and filters contributed by the Thumbor community","fork":false,"url":"https://api.github.com/repos/thumbor/thumbor-plugins","forks_url":"https://api.github.com/repos/thumbor/thumbor-plugins/forks","keys_url":"https://api.github.com/repos/thumbor/thumbor-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thumbor/thumbor-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thumbor/thumbor-plugins/teams","hooks_url":"https://api.github.com/repos/thumbor/thumbor-plugins/hooks","issue_events_url":"https://api.github.com/repos/thumbor/thumbor-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/thumbor/thumbor-plugins/events","assignees_url":"https://api.github.com/repos/thumbor/thumbor-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/thumbor/thumbor-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/thumbor/thumbor-plugins/tags","blobs_url":"https://api.github.com/repos/thumbor/thumbor-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thumbor/thumbor-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thumbor/thumbor-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/thumbor/thumbor-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thumbor/thumbor-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/thumbor/thumbor-plugins/languages","stargazers_url":"https://api.github.com/repos/thumbor/thumbor-plugins/stargazers","contributors_url":"https://api.github.com/repos/thumbor/thumbor-plugins/contributors","subscribers_url":"https://api.github.com/repos/thumbor/thumbor-plugins/subscribers","subscription_url":"https://api.github.com/repos/thumbor/thumbor-plugins/subscription","commits_url":"https://api.github.com/repos/thumbor/thumbor-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/thumbor/thumbor-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/thumbor/thumbor-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/thumbor/thumbor-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/thumbor/thumbor-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/thumbor/thumbor-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thumbor/thumbor-plugins/merges","archive_url":"https://api.github.com/repos/thumbor/thumbor-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thumbor/thumbor-plugins/downloads","issues_url":"https://api.github.com/repos/thumbor/thumbor-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/thumbor/thumbor-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/thumbor/thumbor-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thumbor/thumbor-plugins/labels{/name}","releases_url":"https://api.github.com/repos/thumbor/thumbor-plugins/releases{/id}","created_at":"2015-03-10T13:14:41Z","updated_at":"2015-08-13T07:15:42Z","pushed_at":"2015-09-17T18:44:32Z","git_url":"git://github.com/thumbor/thumbor-plugins.git","ssh_url":"git@github.com:thumbor/thumbor-plugins.git","clone_url":"https://github.com/thumbor/thumbor-plugins.git","svn_url":"https://github.com/thumbor/thumbor-plugins","homepage":"http://thumbor.org/","size":366,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11"},"html":{"href":"https://github.com/thumbor/thumbor-plugins/pull/11"},"issue":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/issues/11"},"comments":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/thumbor/thumbor-plugins/statuses/78729e70c8328513c9eb77cb3a96a37ba89bf6de"}}}}