{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/popit/issues/707","labels_url":"https://api.github.com/repos/mysociety/popit/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/popit/issues/707/comments","events_url":"https://api.github.com/repos/mysociety/popit/issues/707/events","html_url":"https://github.com/mysociety/popit/issues/707","id":52136367,"number":707,"title":"make the image-proxy URLs easily available","user":{"login":"mhl","id":7907,"avatar_url":"https://avatars.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-16T16:43:37Z","updated_at":"2015-01-09T16:56:57Z","closed_at":null,"body":"At the moment, the `image` and `images` elements in returned responses are links to the original image, e.g. (for one that's been uploaded to PopIt):\r\n\r\n* http://yournextmp.popit.mysociety.org/persons/4507/image/5481e918b150e238702c062e\r\n\r\nIt's helpful to have easy access to the version behind that PopIt's image proxy, which would be:\r\n\r\n* https://yournextmp.popit.mysociety.org/image-proxy/https%3A%2F%2Fyournextmp.popit.mysociety.org%2Fpersons%2Fimages%2F5481e918b150e238702c062e%2F4507/128/0\r\n\r\nSince you can put a size at the end of that to get a thumbnail of a given size, it would frequently be useful to have that URL easily accessible too.  Alongside the `image` attribute, one could have `image_proxied` and similarly each object in the `images` array could have `url_proxied` as well as `url`."},"comment":{"url":"https://api.github.com/repos/mysociety/popit/issues/comments/69363024","html_url":"https://github.com/mysociety/popit/issues/707#issuecomment-69363024","issue_url":"https://api.github.com/repos/mysociety/popit/issues/707","id":69363024,"user":{"login":"struan","id":5310,"avatar_url":"https://avatars.githubusercontent.com/u/5310?v=3","gravatar_id":"","url":"https://api.github.com/users/struan","html_url":"https://github.com/struan","followers_url":"https://api.github.com/users/struan/followers","following_url":"https://api.github.com/users/struan/following{/other_user}","gists_url":"https://api.github.com/users/struan/gists{/gist_id}","starred_url":"https://api.github.com/users/struan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struan/subscriptions","organizations_url":"https://api.github.com/users/struan/orgs","repos_url":"https://api.github.com/users/struan/repos","events_url":"https://api.github.com/users/struan/events{/privacy}","received_events_url":"https://api.github.com/users/struan/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T16:56:57Z","updated_at":"2015-01-09T16:56:57Z","body":"From IRC:\r\n\r\n> struan: one other thing - the other image URLs are https when the request to the popit API is, and http    otherwise - it would be great if the proxied URLs behaved the same way"}}