{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/60825577","id":60825577,"diff_hunk":"@@ -128,3 +129,41 @@ function mdCardDirective($mdTheming) {\n     }\n   };\n }\n+\n+\n+/**\n+ * @ngdoc directive\n+ * @name mdPlainImage\n+ * @module material.components.card\n+ *\n+ * @restrict A\n+ *\n+ * @description\n+ * By default `<md-card>` stretches all images in order for them fit them nicely inside\n+ * the card. This can cause low-resolution images to appear blurry. You can add the\n+ * `md-plain-image` attribute to a `<img>` tag if you want to avoid the stretching for that\n+ * particular image.\n+ *\n+ * @usage\n+ * ### Card with a plain image\n+ * <hljs lang=\"html\">\n+ * <md-card>\n+ *  <img src=\"card-image.png\" alt=\"image caption\" md-plain-image>\n+ * </md-card>\n+ * </hljs>\n+ */\n+function mdPlainImageDirective($mdUtil) {\n+  return {\n+    restrict: 'A',\n+    link: function ($scope, $element) {","path":"src/components/card/card.js","position":40,"original_position":40,"commit_id":"87f92264ca1b651ba19e3d83e00b10820bfece69","original_commit_id":"87f92264ca1b651ba19e3d83e00b10820bfece69","user":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"body":"I wasn't sure whether it wouldn't mess with other directives.","created_at":"2016-04-23T08:59:17Z","updated_at":"2016-04-23T08:59:17Z","html_url":"https://github.com/angular/material/pull/8183#discussion_r60825577","pull_request_url":"https://api.github.com/repos/angular/material/pulls/8183","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/60825577"},"html":{"href":"https://github.com/angular/material/pull/8183#discussion_r60825577"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/8183"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/8183","id":67600623,"html_url":"https://github.com/angular/material/pull/8183","diff_url":"https://github.com/angular/material/pull/8183.diff","patch_url":"https://github.com/angular/material/pull/8183.patch","issue_url":"https://api.github.com/repos/angular/material/issues/8183","number":8183,"state":"open","locked":false,"title":"feat(card): add a directive for overriding the image stretching","user":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"body":"* Adds a directive that can be used if users don't want their images to be stretched inside `<md-card>`.\r\n* Avoids some repetition in the `md-card` unit tests.\r\n\r\nFixes #7447.\r\n\r\n@ThomasBurleson, @topherfangio this is as discussed in the issue. I tried to keep it as simple as possible.","created_at":"2016-04-23T08:33:55Z","updated_at":"2016-04-23T08:59:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53666efad230087748c5d7783720f0bb9a07bafb","assignee":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/angular/material/pulls/8183/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/8183/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/8183/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/87f92264ca1b651ba19e3d83e00b10820bfece69","head":{"label":"crisbeto:card-images","ref":"card-images","sha":"87f92264ca1b651ba19e3d83e00b10820bfece69","user":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"repo":{"id":51659231,"name":"material","full_name":"crisbeto/material","owner":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crisbeto/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/crisbeto/material","forks_url":"https://api.github.com/repos/crisbeto/material/forks","keys_url":"https://api.github.com/repos/crisbeto/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crisbeto/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crisbeto/material/teams","hooks_url":"https://api.github.com/repos/crisbeto/material/hooks","issue_events_url":"https://api.github.com/repos/crisbeto/material/issues/events{/number}","events_url":"https://api.github.com/repos/crisbeto/material/events","assignees_url":"https://api.github.com/repos/crisbeto/material/assignees{/user}","branches_url":"https://api.github.com/repos/crisbeto/material/branches{/branch}","tags_url":"https://api.github.com/repos/crisbeto/material/tags","blobs_url":"https://api.github.com/repos/crisbeto/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crisbeto/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crisbeto/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/crisbeto/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crisbeto/material/statuses/{sha}","languages_url":"https://api.github.com/repos/crisbeto/material/languages","stargazers_url":"https://api.github.com/repos/crisbeto/material/stargazers","contributors_url":"https://api.github.com/repos/crisbeto/material/contributors","subscribers_url":"https://api.github.com/repos/crisbeto/material/subscribers","subscription_url":"https://api.github.com/repos/crisbeto/material/subscription","commits_url":"https://api.github.com/repos/crisbeto/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/crisbeto/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/crisbeto/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/crisbeto/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/crisbeto/material/contents/{+path}","compare_url":"https://api.github.com/repos/crisbeto/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crisbeto/material/merges","archive_url":"https://api.github.com/repos/crisbeto/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crisbeto/material/downloads","issues_url":"https://api.github.com/repos/crisbeto/material/issues{/number}","pulls_url":"https://api.github.com/repos/crisbeto/material/pulls{/number}","milestones_url":"https://api.github.com/repos/crisbeto/material/milestones{/number}","notifications_url":"https://api.github.com/repos/crisbeto/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crisbeto/material/labels{/name}","releases_url":"https://api.github.com/repos/crisbeto/material/releases{/id}","deployments_url":"https://api.github.com/repos/crisbeto/material/deployments","created_at":"2016-02-13T18:29:24Z","updated_at":"2016-02-13T18:29:27Z","pushed_at":"2016-04-23T08:45:26Z","git_url":"git://github.com/crisbeto/material.git","ssh_url":"git@github.com:crisbeto/material.git","clone_url":"https://github.com/crisbeto/material.git","svn_url":"https://github.com/crisbeto/material","homepage":"https://material.angularjs.org/","size":42126,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"angular:master","ref":"master","sha":"224885114d926a6dbe569825205c1fbf1f6fc6b0","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":21399598,"name":"material","full_name":"angular/material","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/material","description":"Material design for Angular","fork":false,"url":"https://api.github.com/repos/angular/material","forks_url":"https://api.github.com/repos/angular/material/forks","keys_url":"https://api.github.com/repos/angular/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material/teams","hooks_url":"https://api.github.com/repos/angular/material/hooks","issue_events_url":"https://api.github.com/repos/angular/material/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material/events","assignees_url":"https://api.github.com/repos/angular/material/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material/tags","blobs_url":"https://api.github.com/repos/angular/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material/languages","stargazers_url":"https://api.github.com/repos/angular/material/stargazers","contributors_url":"https://api.github.com/repos/angular/material/contributors","subscribers_url":"https://api.github.com/repos/angular/material/subscribers","subscription_url":"https://api.github.com/repos/angular/material/subscription","commits_url":"https://api.github.com/repos/angular/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material/merges","archive_url":"https://api.github.com/repos/angular/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material/downloads","issues_url":"https://api.github.com/repos/angular/material/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material/labels{/name}","releases_url":"https://api.github.com/repos/angular/material/releases{/id}","deployments_url":"https://api.github.com/repos/angular/material/deployments","created_at":"2014-07-01T19:20:06Z","updated_at":"2016-04-22T22:37:05Z","pushed_at":"2016-04-23T08:33:57Z","git_url":"git://github.com/angular/material.git","ssh_url":"git@github.com:angular/material.git","clone_url":"https://github.com/angular/material.git","svn_url":"https://github.com/angular/material","homepage":"https://material.angularjs.org/","size":79866,"stargazers_count":13334,"watchers_count":13334,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2689,"mirror_url":null,"open_issues_count":1635,"forks":2689,"open_issues":1635,"watchers":13334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/8183"},"html":{"href":"https://github.com/angular/material/pull/8183"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/8183"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/8183/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/8183/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/8183/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/87f92264ca1b651ba19e3d83e00b10820bfece69"}}}}