• Resolved locomo

    (@locomo)


    For a given attachment ID, is there a way to determine the largest image size for which a retina size image was created?

    I’m opening an image in a lightbox and I want to pass the largest retin-ized image available.

    thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    The browser should determine it, for that the Lightbox should absolutely use the src-set. Avoids older lightbox that don’t work this way. I made a lightbox called Meow Lightbox that uses src-set, but there are many others that do that too I guess. Don’t try to determine thing programmatically by yourself, everything is cached at the end (or should be) and every devices is different, so the choice should be made by the browser.

Viewing 1 replies (of 1 total)
  • The topic ‘Return largest retin-ized variant for attachment’ is closed to new replies.