{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/page-metadata-parser/issues/32","repository_url":"https://api.github.com/repos/mozilla/page-metadata-parser","labels_url":"https://api.github.com/repos/mozilla/page-metadata-parser/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/page-metadata-parser/issues/32/comments","events_url":"https://api.github.com/repos/mozilla/page-metadata-parser/issues/32/events","html_url":"https://github.com/mozilla/page-metadata-parser/issues/32","id":170538683,"number":32,"title":"Return secure HTTPS images, if possible","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-10T23:01:15Z","updated_at":"2016-08-10T23:01:15Z","closed_at":null,"body":"Ref https://github.com/mozilla/page-metadata-service/issues/37\r\n\r\n---\r\n\r\nFun! Turns out that in some cases we may get some Open Graph magic like `og:image:secure_url` which is an HTTPS URL (see http://ogp.me/#structured). It'd probably be nice to use this image if available instead of the HTTP `og:image` or `og:image:url` versions.\r\n\r\n> `og:image:url` - Identical to `og:image`.\r\n> `og:image:secure_url` - An alternate url to use if the webpage requires HTTPS.\r\n\r\n> &mdash; via http://ogp.me/#structured\r\n\r\nOr a real-live example at https://www.mysecretwood.com/collections/our-rings?sort_by=best-selling:\r\n```html\r\n<meta property=\"og:image\" content=\"http://cdn.shopify.com/s/files/1/1197/3550/t/12/assets/logo.png?13093450641738266550\">\r\n<meta property=\"og:image:secure_url\" content=\"https://cdn.shopify.com/s/files/1/1197/3550/t/12/assets/logo.png?13093450641738266550\">\r\n```\r\n\r\nIt looks like we're currently the same as Embedly proxy behavior, but seems like a simple fix to get more secure HTTPS images [when available].\r\n\r\n```sh\r\nnode index --url \"https://www.mysecretwood.com/collections/our-rings?sort_by=best-selling\"\r\n\r\nhttps://www.mysecretwood.com/collections/our-rings?sort_by=best-selling:\r\n  images:\r\n    embedly:\r\n      -\r\n        caption: null\r\n        entropy: 1.93638247295\r\n        height:  220\r\n        size:    46404\r\n        url:     http://cdn.shopify.com/s/files/1/1197/3550/t/12/assets/logo.png?13093450641738266550\r\n        width:   303\r\n    fathom:\r\n      -\r\n        entropy: 1\r\n        height:  500\r\n        url:     http://cdn.shopify.com/s/files/1/1197/3550/t/12/assets/logo.png?13093450641738266550\r\n        width:   500\r\n  url:\r\n    embedly: https://www.mysecretwood.com/collections/our-rings\r\n    fathom:  https://www.mysecretwood.com/collections/our-rings?sort_by=best-selling\r\n```"}}
{"actor":{"display_login":"pdehaan"}}