Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter media previews #34

Open
paulgibbs opened this issue Aug 21, 2013 · 7 comments
Open

Twitter media previews #34

paulgibbs opened this issue Aug 21, 2013 · 7 comments

Comments

@paulgibbs
Copy link
Contributor

For tweets with pictures, is it possible to show those previews in the Media Explorer? Do we get the media URL back in the search results?

I thought I had seen discussion about this already but can't find it.

@pepegar
Copy link
Contributor

pepegar commented Aug 28, 2013

We can retrieve the "entities" for each tweet. Entities are all the non-text content inserted in a tweet (photo, location, Vine, news from magazines...) but, they are not identified, so we can't determine whether a entity is a photo or not... I will still investigating though.

@paulgibbs
Copy link
Contributor Author

If we can get the location, it would be cool if we can add extra pins to the Google Maps box so you can select search results by clicking on those pins

@johnbillion
Copy link
Contributor

Sorry chaps I meant to reply to this ticket. There is a 'media' item in the 'entities' object for each tweet if a tweet contains media such as image or video.

If I recall correctly the issue we had when we originally discussed this was that Twitter doesn't tell you the media type, and it doesn't generate thumbnails for media attached to tweets, so we'd be displaying potentially full-sized images on the screen, scaled down in the browser (this is actually what happens on Twitter.com).

I just had a peek at the API response from Twitter and there is a 'sizes' item in the 'media' array, but it's not clear what this is for. Might need to be cross-checked with the API docs.

@paulgibbs
Copy link
Contributor Author

@simonwheatley
Copy link
Contributor

The method of appending a :[size] to the URL still seems to work, though I can't find documentation for it. Examples in ascending order of size:

  1. https://pbs.twimg.com/media/BSvSv7FIcAErIqT.jpg:thumb
  2. https://pbs.twimg.com/media/BSvSv7FIcAErIqT.jpg
  3. https://pbs.twimg.com/media/BSvSv7FIcAErIqT.jpg:small
  4. https://pbs.twimg.com/media/BSvSv7FIcAErIqT.jpg:large

@paulgibbs
Copy link
Contributor Author

Regarding the scaling of images, we can use Photon to handle that (and caching there-of)
http://jetpack.me/2013/07/11/photon-and-themes/

@paulgibbs
Copy link
Contributor Author

Moving to future release. I think we need to think about the UI -- where to show the images. The twitter results are already limited to 400px or so wide, and on a large monitor, you get a lot of blank space.

Thinking there's some reorganising we can do; maybe even introduce another side-column (on the right?) where media is previewed. However this is done, we should keep the UX consistent with #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants