Moving photos from one gallery to another

I have a directory called "working". In it I upload photos that I have not yet identified. These are photos taken over a period of many years by members of our sailing club.

Some members are authorised to log in and add descriptions to these photos but now I can't figure out how to move them into "active", that is publically viewable galleries without losing the description information.

Is there a way to do this?

Thanks

No reply

Am I being clear about what I want to do? No reply after four days.

Has anyone done this before?

Dennis M. Gray
Secretary
Australian Sailing & Cruising Club Inc.

This is not possible out of

This is not possible out of box yet.

The best way now, is to put the descriptions in IPTC( via Photoshop or Irfanview or ... ), these are imported by phpAlbum automatically no matter where they are, as this Info is stored directly in JPG.

Sorry for that ... if you have a lot of those pictures, it is possible to hack the database files and so move the files with descriptions, if you want i could describe it here how you could do it...

Hacking the files

This might be necessary. I don't have Photoshop and the descriptions are being added by Club members, who probably wouldn't have photoshop either.

There's no big hurry but I would like to know how to do it.

Thanks!

Dennis M. Gray
Secretary
Australian Sailing & Cruising Club Inc.

So, how to move pictures to

So, how to move pictures to another directory including all descriptions (applicable only for 0.4.x versions).

Before you move the pictures physically to another directory you have to backup your descriptions. These are stored in DATA_DIR/album_files_XXXX.php files. In order to backup the correct file you have to find it. Each directory has its own file.

To find out which file is the correct one, you have to look in the album_directory.php file. There you will find the record for your directory which you want to move. Find the record where the path variable has the correct value which is the name of the directory to be moved.
Look now to the variable seq_files of this record and note that number.

Now you know which album_files_.php has the descriptions of your pictures. Backup this file.

Now you can physically move or copy the directory, to some other place in PHOTO_DIR Tree. After this run the Scan directories in Setup->Galleries. The new directory and pictures without descriptions should be now visible in Album.

You will have to look now in the album_directory.php to check which seq_files value has the new directory. Open the file album_files_xxxx.php for this new directory and copy there the content of the backed up album_files_xxxx.php of the old directory with all the description.

Note that this file has to be writable to the php script, it is possible that you will need to change access rights to this file with chmod.

The descriptions should now be visible in the new directory.

Let me know if this description is OK for you or I should be more detailed in some steps.

Another Way

If you are moving a whole album/folder there is an easier way.

1. Move the folder where the images are stored.
2. Open album_directory.php and change the appropriate path variable from the old one to the new one.

I tried this and it worked well. I still had all my comments and view counts. I may be a good idea to run the Scan directories in Setup->Galleries before you move the images to make sure that it is not scanning while the images are being moved.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.