-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
responsive images with srcset #592
Comments
Some discussion on IRC: http://indiewebcamp.com/irc/2016-01-07#t1452160368618 This is definitely an interesting question. We'll need at minimum some way to distinguish "different resolutions of the same image" from "multiple images in the same post" in the parsed mf2. |
I recently got myself a DSLR camera which takes big pictures. I was planning on doing this the other way round when I add some of the photos to my blog. That is If I do this it seems bridgy will try and POSSE the larger image. I assume currently bridgy will just fail if the image is too big for Twitter’s media API endpoint? (which my SLR pictures probably will be) |
cool! yes, that's true. Twitter's size limit is 5MB, fwiw. I've never worked with srcset before, and https://indieweb.org/srcset is a bit intimidating. i expect we'd need to HEAD all of the images and pick the one with the largest I'd happily accept a PR for this if you're interested! the first step would be to figure out (maybe with #indieweb-dev/#microformats) if and how to extract all images in a |
In the spirit of keeping things simple I’d have bridgy HEAD request the image linked to in Then maybe we could reuse the code and do a head request even if there’s just a single conventional (p.s. does Facebook have a photo size limit?) |
I can’t edit on mobile it seems, obviously abuse should be use in the above comment. |
sure! HEADing to check for size is easy. not all servers support it, sadly, but that's a separate question. the main question here still seems whether and how to get the re facebook, i don't see a photo size limit in https://developers.facebook.com/docs/graph-api/reference/user/photos/#Creating |
Blocked on microformats/mf2py#169 |
No longer blocked on mf2py, @angelogladding shipped this just now in v2.0.1! |
If I use responsive images with srcset, and the fallback, original image for
src
, that small image is the one that gets pushed to the silos.Would it be possible to parse srcsets and picture source sets? It might soon be needed.
The text was updated successfully, but these errors were encountered: