fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

Multiple formats for zoomed image

Open bre7 opened this issue 7 years ago • 7 comments

Is there a way to set up more than one image source for the zoomed version ?

E.g: WebP + JPEG

<a
    data-fancybox="media"
    href="image.jpg"
    data-sources="image.webp, image.jpeg"
>
    Hey
</a>

Render in modal dialog using <picture> and <source> tags

Don't think there is atm: https://github.com/fancyapps/fancybox/blob/master/src/js/core.js#L1773 Similar to #1596

Or assume the user will name the files with the same filename, like lazyload does: https://github.com/verlok/lazyload#switch-to-webp

bre7 avatar Sep 08 '18 02:09 bre7

That would be really great!

Nimrod-666 avatar Jan 13 '19 19:01 Nimrod-666

You got my vote. I'm looking for a gallery that allows using multiple formats (webp, jp2 and jpg as fallback).

TVBZ avatar Jun 25 '20 13:06 TVBZ

Hi, This will be possible in v4.

fancyapps avatar Jun 30 '20 09:06 fancyapps

That's great news. Any estimates on release date?

TVBZ avatar Jun 30 '20 21:06 TVBZ

Any updates about this? I really need this feature or some other way for multiple formats.

vedmant avatar Sep 08 '20 14:09 vedmant

Any updates?

Lamanris avatar Aug 23 '21 06:08 Lamanris

Honestly, I am not sure if this feature is import enough to justify implementation and maintenance costs.

fancyapps avatar Aug 26 '21 11:08 fancyapps