Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Let me share an image on twitter/facebook, of an MP’s votes on a topic area #1124
Spun out of #1118 – We've noticed a few people taking screenshots of bits of an MP’s
Can we make it easier for people to share an MP’s actual votes / stances on social media, rather than assuming they'll be ok with just sharing a link to the MP’s voting page.
Talked about this earlier, with @struan. Two possibilities as we see it:
1) Quick fix
Designers hand-make some images (potentially just taking screenshots of the existing UI) for selected high-profile MPs only and add them to TWFY. TWFY detects the images are there, and offers a "Share these votes" button in the relevant sections of the MPs’ voting pages.
Clicking the button would share the pre-made image on twitter or facebook, just as if the user had taken and attached the screenshot themself.
If we just took screenshots of the existing UI, for around 12 key MPs, this would probably only take an hour of designer time. If we made custom imagery, instead of screenshots, maybe it’d take 1 day. Either way, there'll also be 1 day of developer time to implement the share button in the UI.
The limitations are obvious: it's only a handful of MPs, and the images will get out of date once there are more votes on any of the featured topics.
2) Auto-generated images
We add the "Share these votes" button to the UI, next to each section of the
However, the buttons appear on every MP’s page, and the images are generated by code, rather than a designer. (Could do this by rendering an SVG, and then flattening to PNG.) The images could either be generated on demand and then cached, or generated as part of TWFY’s own data refresh process.
Would probably require 1 day of designer time to sort out the SVG template, and 4–5 days of developer time to implement all the code that'll make and flatten the SVGs, and also the sharing buttons in the UI.
referenced this issue
Jul 5, 2016
Today we also had evidence of users wanting to share images of votes when a fairly random MP makes a claim, not just those of leadership candidates - ie I guess we're on shaky ground if we try to guess who's going to create the next big Twitterstorm.
Upon a bit of investigation of this the main hurdle is that you can't include an image in a tweet generated from a twitter share button. I've not looked in to Facebook yet to see how that works.
In theory it's possible to do some background things that upload the image to twitter and then gives someone the twitter pic link but that seems likely to be painful.