nextcloud / files_photospheres

Nextcloud app for viewing Google PhotoSphere 360° images (panorama-images)
GNU Affero General Public License v3.0
29 stars 2 forks source link

Buttons to switch to next/previous photosphere #11

Open TheNetStriker opened 5 years ago

TheNetStriker commented 5 years ago

It would be great to have buttons to switch to next/previous photosphere in the current folder just like in the gallery app. Is something like this planed for this app?

R0Wi commented 5 years ago

Well this would really be a nice feature. At the moment, when clicking on an image there is a little serverside-check if the image is a pano-image or not (this is determined by looking for the xmp-data in the image-file).

If we would like to implement the mentioned feature, we'd have to know which images in the current folder are panos and which aren't. I don't think we can iterate through all images and have a look at the binary data, so maybe @SudoHenk has an idea? I'd really like to implement this any way :-)

SudoHenk commented 5 years ago

AFAIK these are the possible solutions:

  1. We use the client's knowledge of the fileList of the current directory to cycle through the next files and check if they are indeed photospheres (not so nice solution).
  2. Instead of reading the XMP data based on the client's request, we could also register server-side checks for new files being stored, check if these files have XMP tags and store this in the database somehow. Then the client can request the list of photosphere files for a current directory and cycle through that. Probably best solution (as you only read the files once they are created/updated and not on each view), but a lot more work.
ykutovoy commented 3 years ago

Could it be realised? photosphere plugin If create for example "wind rose" at bottom and allow users to select image for direction (we could create "sreetview" replacement)

R0Wi commented 3 years ago

@ykutovoy is this related to the feature discussed here? Otherwise i'd kindly ask you to create a new issue and provide some additional information about the usecase.

ykutovoy commented 3 years ago

I suppose it is one of possible solutions to switch between images

R0Wi commented 3 years ago

Ok currently i don't see the connection between toggling between various images and creating metadata inside a particular image which allows me to kind of interact with that image? Or do you just mean to use this functionality to create two buttons inside the viewer for toggling? I think the controls are not the problem it's rather how to know which image will be the next, like stated in https://github.com/nextcloud/files_photospheres/issues/11#issuecomment-506700294.

ykutovoy commented 3 years ago

Unfortunately, I'm far not a programmer. I.m just a happy user wich got such a cool app in nextcloud :) I can only provide user experience, and to hope somebody will do the app more comfortable for me.

Could we add button "move to...", if pressed, on raght side pops up list of files in directory, after selecting, its opens?

R0Wi commented 3 years ago

Thanks for the creative input @ykutovoy . I'll investigate in that improvement as soon as i have time for this :+1:

Thatoo commented 3 years ago

This ferature would be really nice indeed

R0Wi commented 10 months ago

FYI: With the new version for NC28 the XMP metadata is now extracted in the backend whenever a directory listing is opened. So the files list metadata now contains the XMP metadata for each jpg file, which is mandatory to implement something like the feature requested here.