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


Permlink Replies: 9 - Pages: 1 - Last Post: 11 Jun 25, 05:52 Last Post By: JeffTucker Threads: [ Previous | Next ]
TBradleyPhotog

Posts: 13
Registered: 12-Feb-2019
New Feature Request: Download Selected
Posted: 11 Dec 23, 14:54
 
  Click to reply to this thread Reply
Here is a feature that would be very helpful to me. If I shoot a large event with several hundred photos, some people may only want to download 10 or 15 pictures but downloading individually is inefficient. They have no interested in the other images so I'd suggest adding a "Download Selected" option. This would be my vision:

1) Add a checkbox to the thumbnail so multiple images could be selected
2) Add a new button named "Download Selected" next to the "Download All" option in the sidebar.
3) Dynamically build a new zip file containing only the selected images. You'd probably need to distribute a simple zip app embedded in the album if people select this feature.

Thanks for considering it!

Tom
JeffTucker

Posts: 8,014
Registered: 31-Jan-2006
Re: New Feature Request: Download Selected
Posted: 11 Dec 23, 15:13   in response to: TBradleyPhotog in response to: TBradleyPhotog
 
  Click to reply to this thread Reply
Tricky, but I think it would be simpler if you skip the zipping step. Just download the images, one-by-one. There's nothing to be gained by zipping - JPG's are already about as compressed as they can possibly be.

This would be a skin feature, of course. The core doesn't produce a single line of HTML, CSS, or Javascript.
davidekholm

Posts: 3,693
Registered: 18-Oct-2002
Re: New Feature Request: Download Selected
Posted: 11 Dec 23, 15:56   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
This feature would be a candidate for a server side API that takes links to individual images and returns a zip of them.
JeffTucker

Posts: 8,014
Registered: 31-Jan-2006
Re: New Feature Request: Download Selected
Posted: 11 Dec 23, 15:59   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
"Server side?" Wash your mouth out with soap. What do you think this is, Piwigo? ;)
davidekholm

Posts: 3,693
Registered: 18-Oct-2002
Re: New Feature Request: Download Selected
Posted: 11 Dec 23, 16:04   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
"Server side?" Wash your mouth out with soap. What do you think this is, Piwigo? ;)

I know, such a feature would create a dependency on jalbum.net - something we generally want to avoid.
breisachers

Posts: 14
Registered: 20-Jan-2025
Re: New Feature Request: Download Selected
Posted: 11 Jun 25, 02:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Did anything ever come of this request? I would also like this feature -- allow users (family members) to select individual photos as they browse a large album, then click "download selected" and get a zip file with the selected images in it.
JeffTucker

Posts: 8,014
Registered: 31-Jan-2006
Re: New Feature Request: Download Selected
Posted: 11 Jun 25, 02:38   in response to: breisachers in response to: breisachers
 
  Click to reply to this thread Reply
breisachers wrote:
Did anything ever come of this request?

Well, no, and the reason is fairly straightforward - this would require server-side processing, and jAlbum is not a server-side application.

To honor a visitor's request for a bundle of the selected images, that request would have to be sent to the server. The server would then have to access the requested files and assemble a download package. This is something that can't be done in a browser - the selection and bundling of the files has to be done on the server.

This is totally at odds with the jAlbum application model. It's not a server-side application. It doesn't maintain a database of images on the server, then put together albums or download packages "on the fly." It's not a content management system.
breisachers

Posts: 14
Registered: 20-Jan-2025
Re: New Feature Request: Download Selected
Posted: 11 Jun 25, 05:28   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Hm ok. I'm still quite new to jAlbum so I'm really just trying to understand the components - not trying to be argumentative. I'm still fuzzy on what skins do vs what jAlbum itself does. Guess I need to do some more reading. later: Ah, jAlbum is a 'development' tool for making web sites. The skins can provide browser side features. There is NO server-side code at all, jAlbum or otherwise. Right?

I'm not that familiar with what all can be done in browser-side code, but could a fancy enough skin handle this feature?

I have seen there are skins that include the ability to download all the images in an album in a zip file, how is that done?

Edited by: breisachers on 10 Jun 2025, 20:38
JeffTucker

Posts: 8,014
Registered: 31-Jan-2006
Re: New Feature Request: Download Selected
Posted: 11 Jun 25, 05:45   in response to: breisachers in response to: breisachers
 
  Click to reply to this thread Reply
breisachers wrote:
I'm still fuzzy on what skins do vs what jAlbum itself does.

It's easy to separate them if you remember one thing: the jAlbum core doesn't produce a single line of HTML, CSS, or Javascript on its own. That's what a skin does.

The jAlbum core organizes the projects, processes the images and videos, and provides the programming tools. The skins actually produce the album pages, using all of the things that the core makes available. The core then provides things like the uploading module, the routines for previewing the album locally, and so on.

In the settings panels, if a setting appears on the skin's own panels (Tiger, Neptune, whatever), it's a skin setting. If a setting appears elsewhere (General, Pages, Images, etc.), it's the jAlbum core that handles it.

There are some places where the lines blur a bit, but that's the basic "division of labor."

I have seen there are skins that include the ability to download all the images in an album in a zip file, how is that done?

The zip file is created when you build the album. It is then uploaded to the server, along with the album pages, and is sitting there ready to be downloaded on demand. But once that file is created on your PC, that's the end of the process. It can't be customized later, in response to something a particular visitor wants.
JeffTucker

Posts: 8,014
Registered: 31-Jan-2006
Re: New Feature Request: Download Selected
Posted: 11 Jun 25, 05:52   in response to: breisachers in response to: breisachers
 
  Click to reply to this thread Reply
breisachers wrote:
I'm not that familiar with what all can be done in browser-side code, but could a fancy enough skin handle this feature?

Theoretically, yes. The JSON-driven skins, like Tiger and Photoblogger, can do a lot of things in the browser, but it involves a lot of "heavy lifting," and entails considerable overhead. To include a search capability, for example, the entire JSON database of the contents of the album has to be downloaded to the browser, and processed there. That can get unwieldly in a hurry. Doing the same thing server-side would be relatively simple.

To some extent, it's a question of choosing the right tool for the job. You don't buy a Porsche 911, then start figuring out how to put a trailer hitch on it to haul your camping trailer. Possible? Yes. Advisable? No.
Legend
Forum admins
Helpful Answer
Correct Answer

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