Giter VIP home page Giter VIP logo

Comments (7)

pepegar avatar pepegar commented on July 18, 2024

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.

from media-explorer.

paulgibbs avatar paulgibbs commented on July 18, 2024

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

from media-explorer.

johnbillion avatar johnbillion commented on July 18, 2024

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.

from media-explorer.

paulgibbs avatar paulgibbs commented on July 18, 2024

https://dev.twitter.com/docs/tweet-entities

from media-explorer.

simonwheatley avatar simonwheatley commented on July 18, 2024

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

from media-explorer.

paulgibbs avatar paulgibbs commented on July 18, 2024

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/

from media-explorer.

paulgibbs avatar paulgibbs commented on July 18, 2024

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

from media-explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.