Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to PhotoSwipe for the slideshow #158

Closed
oparoz opened this issue May 23, 2015 · 9 comments
Closed

Switch to PhotoSwipe for the slideshow #158

oparoz opened this issue May 23, 2015 · 9 comments

Comments

@oparoz
Copy link
Contributor

oparoz commented May 23, 2015

It was suggested that PhotoSwipe could be a replacement, so I took a look at the API and did a rough implementation.

Here are my findings:

+

It supports quite a few features which were manually added to the Gallery slideshow and solves some of the complaints mentioned above

  • Supports keyboard shortcuts
  • Mobile optimised
  • Auto PNG/SVG selector for buttons
  • Fullscreen support
  • Auto-control hide
  • Social sharing. Our custom oC sharing could be added to the list...one day
  • Customisable image pre-loading
  • Supports captions (we only have the filename, that's better than nothing)

-

The initialisation doesn't work out of the box because we don't have the image dimensions before launching the slideshow

  • We have to add our own spinner/loader because we don't know the size of images
  • We need to theme it to match ownCloud's design identity
  • Scroll to zoom doesn't work out of the box on desktop. So it's zoom in and zoom back out, like in the browser vs like in Google Maps unless we implement a fix
  • Zooming only works well if we're able to send multiple dimensions categories to the slideshow. This would solve other problems with thumbnails of various sizes accumulating in the cache, but that means extra work
  • Zooming is also only possible if we download the whole image and resize it in the browser, leading to a lot of bandwidth waste
  • No image luminance detection, so we'll still have to take care of that
  • No broken image detection (404 or 500), so we'll still have to take care of that

My biggest problem is with the missing scroll to zoom feature on the desktop, but if it's not on/off with gestures, it should be possible to get it to work on desktops as well.

Sponsorship

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@oparoz oparoz changed the title Photoswipe slideshow PhotoSwipe slideshow Jun 3, 2015
@oparoz
Copy link
Contributor Author

oparoz commented Jun 26, 2015

@jancborchardt - Feel free to provide your input on PhotoSwipe. At some point we'll have to decide whether it's best to work on our custom slideshow or improve on an existing solution.

@jancborchardt
Copy link
Member

Phew, good question … in general it seems better to take a widely-used library for stuff like this rather than baking our own. Are there any alternatives? Maybe @owncloud/designers know something?

@oparoz
Copy link
Contributor Author

oparoz commented Jun 26, 2015

The other software I tested was Fotorama, but it's too basic from my pov.

@oparoz oparoz changed the title PhotoSwipe slideshow Switch to PhotoSwipe for the slideshow Feb 18, 2016
@oparoz oparoz added this to the 9.1-next milestone Feb 18, 2016
@oparoz
Copy link
Contributor Author

oparoz commented Feb 18, 2016

It seems the Bigshot project has died and since we're not really using its advanced features, I think we should seriously consider switching to Photoswipe.
The alternative is to use something like Hammer.js to implement zooming and to keep using the current slideshow code.

@kavishdahekar
Copy link

If we proceed with Hammer.js for zooming capability, modifying BigShot to fix #142 #263 and #141 will be much work(both of them are very desirable features).
I'm interested in taking this up (GSoC aspirant) so I'll take a deeper look at PhotoSwipe and also try to fix some junior labeled issues.

@oparoz
Copy link
Contributor Author

oparoz commented Mar 3, 2016

Thank you @kavishdahekar. Don't hesitate to ask questions if you don't understand how some things are currently done in the slideshow because the candidate will need to understand how to migrate features from one engine to the other or how to keep the current UI on top of the view generated by the engine per example.

@shubhrajodiya
Copy link

@oparoz i am unable to understand where to start up with this i am having a lot of ideas regarding the slideshow but unable to find a path to integrate it in ownCloud

@oparoz
Copy link
Contributor Author

oparoz commented Mar 16, 2016

@shubhrajodiya @kavishdahekar - I've created a new issue to describe what should be attempted during the GSoC.
#600

It contains more details and useful links which should help you figure out how things are initialised.
If you have specific questions, don't hesitate to ask there or here if it's Photoswipe specific.

@oparoz oparoz removed the gsoc label May 5, 2016
@oparoz oparoz modified the milestones: 9.2-next, 9.1-current Jun 13, 2016
@oparoz
Copy link
Contributor Author

oparoz commented Sep 4, 2016

This issue was moved to nextcloud/gallery#33

@oparoz oparoz closed this as completed Sep 4, 2016
@oparoz oparoz removed the ready label Sep 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants