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

Responsive Flickr embed codes #6

Closed
sillygwailo opened this issue Sep 16, 2013 · 1 comment
Closed

Responsive Flickr embed codes #6

sillygwailo opened this issue Sep 16, 2013 · 1 comment

Comments

@sillygwailo
Copy link

Given a Flickr URL, generate an embed code that's responsive. It looks like you could take what Flickr uses as an embed code as a template, then change the width to 100%, remove the height, and choose an image size, either "large" or "original" based on http://www.flickr.com/services/api/misc.urls.html (probably go with "large", since some original images can be quite big in file size).

@jeffehobbs
Copy link
Owner

@sillygwailo responsive images (if you don't factor in file size) are pretty simple, compared to video/multimedia embeds. All you should really need to do is:

<div style="max-width: 100%; height: auto;">
    <img src="/path/to/image/file.jpg"/>
</div>

Give that a shot and let me know if something else would be desirable.

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

No branches or pull requests

2 participants