-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Photo and tile view mode #76
Comments
I would love to have this! back in the day (a few years ago) I ran HFS 2.0 on my server, and managed to create a half-baked implementation of this concept on that software, it would be great to see something like it built into HFS 3 |
Now I have a tourist community visiting me and during the summer hiking season there are really a lot of photo/Video uploads from people. View mode and tile mode are really very lacking. It is also recommended to use the mode of operation of the tiles while downloading files. people upload 100,500 images/videos at once, they can’t figure out by name what is needed and what is superfluous in the download list. Looking forward to these features. |
i don't consider this a core feature, thus i tagged this request as "plugin", but I will try to see what can be done, to ensure a plugin can actually make it. |
if (item is img || item is video)
{
add class to item data-fancybox="gallery" data-caption="Caption #1 or caption from meta"
}
Fancybox.bind("[data-fancybox]", {
// options from admin ui gallery control page
}); and add custom css for tiles list |
What about saving thumbnail as a separate jpg file with it's hash (md5 or other) as the name in cwd/cache and having another file with references to them as the path and hash pair? |
hash name would make sense to avoid duplicates, but I don't see many duplicates in this use case |
That's so you don't have to worry about name conflicts and path being too long |
right, but if i need a file to keep references then hash or sequential number is basically the same. |
Well what about other formats like png, webp and others? |
didn't look into them yet. |
I wouldn't like my files modified, so that's why i'm suggesting this |
The most adequate implementation of the thumbnails cache: their assimilation in the file itself through the reliability of the standard thumbnail mechanism. If you don’t want to bother like this, the prose just saves them in a certain tempo folder (indicated in the admin panel) and either repeat the paths from the parent or replace the slashes with an underscore. On-the-fly thumbnail generation How to make a listener on receiving file path and returning thumbnail path and request input asynchronously for files in folder. |
i just verified png and webp are supported, apparently without extra effort. Tiff should as well, but didn't verify it. I just had a look at this package, and it uses package "sharp" to get the work done. I already tried sharp, my first attempt actually, and it's very fast, but it's harder to distribute: 80MB and still won't work on "every" platform. If I keep all thumbnails in a folder, the hashing suggestion, while taking an extra time for calculation, could behave much better when renaming/moving original files around. |
I think the tiled view will work great with my view add-on (still in development, but I'll be sure to share when I'm done). It's especially cool if the object has a thumbnail property to access the preview to feed it with the Graybox injection |
Need thumbs support. Example Fancybox viewer WITHOUT thums support: |
are you on Windows? |
yep) win 11 x 64 |
tiles mode in 0.46.0 #257 |
@6elkir did you have the chance to see if the new API is good for your purpose? |
Hi @rejetto! So far, unfortunately, I haven’t managed to get it yet I’ll try to do it one of these days. And how to check the API before the release of a new version? |
no worries, everybody is busy 🙂 |
Do I understand correctly that getDefaultIcon() will return a link to the file thumbnail? If yes, then this will be enough for Fancybox. |
getDefaultIcon doesn't return a link, but the image/icon. |
It is unlikely that I could recognize the Fancybox api, it needs a set of objects from 2 lines of the form |
if you need the thumbnail url, then getDefaultIcon is not the right choice. |
is the plugin already available? |
It is, but you need version 0.46 |
An excellent feature that is sorely lacking along with the ability to upload files: this is the ability to view directories in the form of tiles and photo previews, as well as open images in some viewer with the ability to slideshow (the same greybox). It's quite easy to screw it on and it seems to me that it will raise the level of the software quite well.
The text was updated successfully, but these errors were encountered: