This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: 20-Nov-2018 17:05 Last Post By: AndreWolff Threads: [ Previous | Next ]
AndreWolff

Posts: 1,864
Registered: 14-Dec-2007
Generate slides-sets for different viewport width for use of srcset
Posted: 20-Nov-2018 15:24
 
  Click to reply to this thread Reply
Modern responsive light-box libraries like the PhotoSwipe Javascript gallery and the fancybox Javascript light-box libray used by my PhotoSwipe skin and FancyBox skin enable the use of different images based on viewport width via the srcset attribute.

I tested this with the FancyBox skin, see this srcset demo album which uses 568x320 images for viewports < 640 px and 2560x1440 HDPI images for larger screens.

Fancybox uses codes like this:

<a data-fancybox="S" href="slides/RV_150510_1055.jpg" data-fancybox="images" data-srcset="slides/RV_150510_1055.jpg 1600w,  slides_600/RV_150510_1055.jpg 640w"  >
  <img src="thumbs/RV_150510_1055.jpg" width="107" height="80" alt="" title="" /></a>
I tested this on an old iPhone5 and this works much better as this album which uses only one set of slides of 2560x1440 HDPI images for small and large screens.

However the current jAlbum version generates only one set of slides.

So my request is:

Please make it possible to generate optionally one or two extra sets of slides with different resolution in slides_xxx directories, where xxx corresponds with the used image bounds.
jGromit

Posts: 7,973
Registered: 31-Jan-2006
Re: Generate slides-sets for different viewport width for use of srcset
Posted: 20-Nov-2018 15:39   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff

Posts: 1,864
Registered: 14-Dec-2007
Re: Generate slides-sets for different viewport width for use of srcset
Posted: 20-Nov-2018 17:05   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Yes, I did ask for this earlier and not only me see http://jalbum.net/forum/thread.jspa?messageID=138036&#138036
But now I can now prove that it helps!
jAlbum should offer to use modern techniques in skins, like the srcset attribute!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums