{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/core/pulls/comments/27052359","id":27052359,"diff_hunk":"@@ -0,0 +1,19 @@\n+<?php\n+/**\n+ * @copyright Olivier Paroz 2015 <owncloud@interfasys.ch>\n+ * This file is licensed under the Affero General Public License version 3 or\n+ * later.\n+ * See the COPYING-README file.\n+ */\n+\n+namespace OC\\Preview;\n+\n+// Supports many file extensions linked to RAW\n+class Raw extends Bitmap {","path":"lib/private/preview/raw.php","position":12,"original_position":12,"commit_id":"d0d9a1fc987c182b9348616762602520b3e22386","original_commit_id":"d0d9a1fc987c182b9348616762602520b3e22386","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"body":"I don't want to be the guinea pig on this. It was decided that providers need to exist as apps and someone must have a clear vision on how this is going to work, without using any private APIs and without breaking existing apps.\r\nThere needs to be at least one provider moved to an app, to make sure this actually works and to serve as a guide for app devs.\r\n\r\nGood examples would be a sub-class of the bitmap or office providers since each requires 2 apps (base and sub) which need to communicate with each other using undefined methods.\r\nThe movie provider which relies on core classes would be a good case for later as it might highlight missing public methods required to get it to run.","created_at":"2015-03-24T17:31:57Z","updated_at":"2015-03-24T17:31:57Z","html_url":"https://github.com/owncloud/core/pull/14878#discussion_r27052359","pull_request_url":"https://api.github.com/repos/owncloud/core/pulls/14878","_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments/27052359"},"html":{"href":"https://github.com/owncloud/core/pull/14878#discussion_r27052359"},"pull_request":{"href":"https://api.github.com/repos/owncloud/core/pulls/14878"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/14878","id":31128572,"html_url":"https://github.com/owncloud/core/pull/14878","diff_url":"https://github.com/owncloud/core/pull/14878.diff","patch_url":"https://github.com/owncloud/core/pull/14878.patch","issue_url":"https://api.github.com/repos/owncloud/core/issues/14878","number":14878,"state":"open","locked":false,"title":"Add support for Raw files previews","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"body":"## Replaces #13652\r\n\r\n\r\n### Solution for\r\nhttps://github.com/owncloud/core/issues/13650\r\nhttps://github.com/owncloud/apps/issues/439\r\nhttps://github.com/owncloud/apps/issues/1113\r\n\r\nIncluding media type migration and tests\r\n\r\n### Supported formats:\r\n* Sony Alpha RAW .arw\r\n* Canon RAW 2 .cr2\r\n* Digital Camera Raw .dcr\r\n* Digital Negative .dng\r\n* EPSON RAW .erf\r\n* Intelligent Image Quality RAW .iiq\r\n* Kodak DC40/DC50 RAW .kdc\r\n* Kodak DC25 RAW .k25\r\n* Nikon RAW .nef\r\n* Mamiya RAW .mef\r\n* Olympus RAW .orf\r\n* Panasonic RAW .rw2\r\n* PENTAX RAW .pef\r\n* Fujifilm RAW .raf\r\n* Sony RAW File .srf .sr2\r\n* SIGMA RAW .xrf\r\n\r\n### Requirements\r\n* ImageMagick\r\n* ufraw as an ImageMagick delegate for DNG\r\n* ufraw-batch must be reachable from PHP\r\n* PR https://github.com/owncloud/core/pull/13654, which is a fix for https://github.com/owncloud/core/issues/12282\r\n* A gallery app which supports all media types supported by ownCloud","created_at":"2015-03-13T14:11:42Z","updated_at":"2015-03-24T17:31:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a235557dbc0e868f2ecac3c9205e15992d3e2b4","assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/31","html_url":"https://github.com/owncloud/core/milestones/8.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/31/labels","id":912160,"number":31,"title":"8.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":293,"closed_issues":501,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-03-24T16:54:11Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/owncloud/core/pulls/14878/commits","review_comments_url":"https://api.github.com/repos/owncloud/core/pulls/14878/comments","review_comment_url":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/core/issues/14878/comments","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/d0d9a1fc987c182b9348616762602520b3e22386","head":{"label":"oparoz:raw-picture-preview","ref":"raw-picture-preview","sha":"d0d9a1fc987c182b9348616762602520b3e22386","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"repo":{"id":23593901,"name":"core","full_name":"oparoz/core","owner":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oparoz/core","description":"The ownCloud core","fork":true,"url":"https://api.github.com/repos/oparoz/core","forks_url":"https://api.github.com/repos/oparoz/core/forks","keys_url":"https://api.github.com/repos/oparoz/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oparoz/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oparoz/core/teams","hooks_url":"https://api.github.com/repos/oparoz/core/hooks","issue_events_url":"https://api.github.com/repos/oparoz/core/issues/events{/number}","events_url":"https://api.github.com/repos/oparoz/core/events","assignees_url":"https://api.github.com/repos/oparoz/core/assignees{/user}","branches_url":"https://api.github.com/repos/oparoz/core/branches{/branch}","tags_url":"https://api.github.com/repos/oparoz/core/tags","blobs_url":"https://api.github.com/repos/oparoz/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oparoz/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oparoz/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/oparoz/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oparoz/core/statuses/{sha}","languages_url":"https://api.github.com/repos/oparoz/core/languages","stargazers_url":"https://api.github.com/repos/oparoz/core/stargazers","contributors_url":"https://api.github.com/repos/oparoz/core/contributors","subscribers_url":"https://api.github.com/repos/oparoz/core/subscribers","subscription_url":"https://api.github.com/repos/oparoz/core/subscription","commits_url":"https://api.github.com/repos/oparoz/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/oparoz/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/oparoz/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/oparoz/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/oparoz/core/contents/{+path}","compare_url":"https://api.github.com/repos/oparoz/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oparoz/core/merges","archive_url":"https://api.github.com/repos/oparoz/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oparoz/core/downloads","issues_url":"https://api.github.com/repos/oparoz/core/issues{/number}","pulls_url":"https://api.github.com/repos/oparoz/core/pulls{/number}","milestones_url":"https://api.github.com/repos/oparoz/core/milestones{/number}","notifications_url":"https://api.github.com/repos/oparoz/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oparoz/core/labels{/name}","releases_url":"https://api.github.com/repos/oparoz/core/releases{/id}","created_at":"2014-09-02T20:10:47Z","updated_at":"2015-03-20T20:14:58Z","pushed_at":"2015-03-20T21:11:54Z","git_url":"git://github.com/oparoz/core.git","ssh_url":"git@github.com:oparoz/core.git","clone_url":"https://github.com/oparoz/core.git","svn_url":"https://github.com/oparoz/core","homepage":null,"size":176209,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"owncloud:master","ref":"master","sha":"093efa458c16ea4a7f7fcaf3f98e1e0fb96624c4","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550552,"name":"core","full_name":"owncloud/core","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/core","description":"The ownCloud core","fork":false,"url":"https://api.github.com/repos/owncloud/core","forks_url":"https://api.github.com/repos/owncloud/core/forks","keys_url":"https://api.github.com/repos/owncloud/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/core/teams","hooks_url":"https://api.github.com/repos/owncloud/core/hooks","issue_events_url":"https://api.github.com/repos/owncloud/core/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/core/events","assignees_url":"https://api.github.com/repos/owncloud/core/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/core/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/core/tags","blobs_url":"https://api.github.com/repos/owncloud/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/core/languages","stargazers_url":"https://api.github.com/repos/owncloud/core/stargazers","contributors_url":"https://api.github.com/repos/owncloud/core/contributors","subscribers_url":"https://api.github.com/repos/owncloud/core/subscribers","subscription_url":"https://api.github.com/repos/owncloud/core/subscription","commits_url":"https://api.github.com/repos/owncloud/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/core/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/core/merges","archive_url":"https://api.github.com/repos/owncloud/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/core/downloads","issues_url":"https://api.github.com/repos/owncloud/core/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/core/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/core/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/core/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/core/releases{/id}","created_at":"2012-08-25T10:32:48Z","updated_at":"2015-03-24T16:54:11Z","pushed_at":"2015-03-24T17:22:12Z","git_url":"git://github.com/owncloud/core.git","ssh_url":"git@github.com:owncloud/core.git","clone_url":"https://github.com/owncloud/core.git","svn_url":"https://github.com/owncloud/core","homepage":null,"size":959613,"stargazers_count":3163,"watchers_count":3163,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1012,"mirror_url":null,"open_issues_count":1733,"forks":1012,"open_issues":1733,"watchers":3163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/14878"},"html":{"href":"https://github.com/owncloud/core/pull/14878"},"issue":{"href":"https://api.github.com/repos/owncloud/core/issues/14878"},"comments":{"href":"https://api.github.com/repos/owncloud/core/issues/14878/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/core/pulls/14878/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/core/pulls/14878/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/core/statuses/d0d9a1fc987c182b9348616762602520b3e22386"}}}}