Announcement

  •  » Extensions
  •  » New experimental PhotoSwipe-based slideshow

Notice: Undefined offset: 5 in /var/www/piwigo.org/forum/include/parser.php on line 551

#1 2022-11-21 22:36:26

mmoy
Member
France
2014-08-18
78

New experimental PhotoSwipe-based slideshow

Hello/Hi/Greetings,

I love the Fotorama plugin, but it lacks the ability to zoom, especially on mobile phones. As I mentioned in another thread, I started hacking a variant of the Fotorama plugin based on PhotoSwipe. There's a demo/test here: https://matthieu-moy.fr/piwigo/index.php?/category/1 . The interesting code is essentially [Github] Piwigo-Fotorama file template/photoswipe-content.tpl.

I'm now wondering how to proceed. Initially I thought this would become a standalone plugin, as an alternative to Fotorama. BUT ... there's a lot of code in main.inc.php that deserves to be shared between Fotorama and PhotoSwipe (and honestly, it's rather obscure to me who's not used to Piwigo's code). So I'm wondering whether both Fotorama and PhotoSwipe should live in the same plugin, with a configuration option "use Fotorama"/"use PhotoSwipe", and perhaps "use PhotoSwipe on mobile browser, and Fotorama otherwise" (I really prefer PhotoSwipe on mobile, but Fotorama's thumb mode on desktop is kind of cool also, so choosing the tool to use depending on the client may be nice too).

Any advice on what to do next?

Thanks,

Last edited by mmoy (Yesterday 11:06:31)

Offline

 
  •  » Extensions
  •  » New experimental PhotoSwipe-based slideshow

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact