Add photos from server directory

Aikidoka

Joined: 2009-06-12
Posts: 12
Posted: Fri, 2009-06-12 20:03

Is this currently possible in the beta? I am trying out the gallery and copied images from one gallery on the same server to an album in gallery3. I want the software to just check its directory and add those photos no currently added to the album.

 
mrl586

Joined: 2009-05-07
Posts: 30
Posted: Fri, 2009-06-12 23:58
Aikidoka wrote:
Is this currently possible in the beta?

Yes, it is possible.

 
zaphod82

Joined: 2009-06-13
Posts: 4
Posted: Sat, 2009-06-13 00:37

How do you do it?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-14 02:12

We haven't written any code to do it automatically yet. It wouldn't be too difficult as a module, as long as you have a cron job or something similar to hit a url frequently so that Gallery can check for new images.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
Aikidoka

Joined: 2009-06-12
Posts: 12
Posted: Mon, 2009-06-15 18:59
bharat wrote:
We haven't written any code to do it automatically yet. It wouldn't be too difficult as a module, as long as you have a cron job or something similar to hit a url frequently so that Gallery can check for new images.

I don't think a cron job would be that necessary. Just a way to manually trigger the check. Equivalent to batch add files in Coppermine. I just don't want to reupload all my photos when they are already in Coppermine.

 
th0th

Joined: 2003-02-28
Posts: 6
Posted: Mon, 2009-06-15 23:31

isn't that what the server_add module does? the pics are located on the same server, right? just enable the server_add module, and authorize the coppermine album directory structure (note sure how coppermine organizes pics, so you may have to tweak this a bit), then use the module.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-16 03:35

The server_add module won't check to see if some of the files have already been imported, though.. it looks like Aikidoka wants to basically be able to mirror whatever is already there. We don't have a facility for this, but somebody could code it up as a module. Aikidoka, please file a ticket for this feature.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
Aikidoka

Joined: 2009-06-12
Posts: 12
Posted: Tue, 2009-06-16 12:11

Will do. Since there was nothing in the folder yet I was able to use the module. I think this feature would be great. Is there also the ability to upload a zip/gzip file, uncompress it, and add all its contents automatically? If not I'll put in a feature request for that also.

 
Aikidoka

Joined: 2009-06-12
Posts: 12
Posted: Tue, 2009-06-16 12:28

Is there a feature request mechanism or just the other Gallery3 board? I saw the feature voting, but didn't see a way to submit a feature request for Gallery3.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-16 19:06

Yes, you can file feature requests (mark them "enhancement") in the same place that you file bugs. Look at the links in my signature, below.
---
Problems: Check gallery3/var/logs first!
file a bug or feature request | upgrade to the latest code | use git

 
Aikidoka

Joined: 2009-06-12
Posts: 12
Posted: Tue, 2009-06-16 20:42

Thanks! Done! Tickets #422 and #424.