mozilla-magnet / magnet-client

A nearby content discovery client for Android & iOS
Mozilla Public License 2.0
19 stars 11 forks source link

Render image URLs #97

Open wilsonpage opened 8 years ago

wilsonpage commented 8 years ago

The metadata service should be able to accept image URLs and the client should be able to render them in a nice tile. Tapping should render a native image viewer component for all the usual pinch-zoom/pan goodness.

wilsonpage commented 8 years ago

@samgiles @arcturus any suggestions on how we should handle simple image URIs in the metadata-service? Should we just return:

{
  image: 'http://example.com/image.jpg',
  url: 'http://example.com/image.jpg'
}

Ideally we'd have some special treatment that could allow panning/zooming of images, but this could require another tile type. The easiest option would be to just render it like a normal static tile except without a title or description.