rebuild all photos and thumbnails
ekitel
Joined: 2005-08-17
Posts: 30 |
![]() |
I downloaded the albums directory from g2data, edited a lot of the photos there, and the reuploaded the whole albums directory to g2data so now how can I get the new photos into the galleries? I've tried the maintenance option to Build all thumbnails/resizes, but this just checks the images, it's not actually rebuilding anything, how do I force it to rebuild everything whether it wants to or not? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you shouldn't do that... however, you need to manually write a script that iterates over all data items and force a refresh. try it with the search function. i've sketched the "refresh" code in a post in spring/early summer 2005 somewhere in the forums. |
|
ekitel
Joined: 2005-08-17
Posts: 30 |
![]() |
I didn't mess with the directory structure, I just had to crop some of the images a little because they hadn't been scanned properly originally, and this seemed like by far the easiest way to go through hundreds of photos unfortunately I don't write code so I don't think I can do this, I guess I'll just have to re add the photos to the galleries using the add items from URL function |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
add items -> from local server is the best method in this case. http://codex.gallery2.org/index.php/Gallery2:How_to_Add_Items#How_To_Add_Items_From_the_Local_Server |
|
ekitel
Joined: 2005-08-17
Posts: 30 |
![]() |
really? will it recreate all the albums and sub albums from the directories in the upload folder? I spent a lot of time creating a pretty complex structure of sub-galleries, so I can't loose that... |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
the structure is preserved, you'll lose comments, users, groups, customfields, ... just everything that you manually changed after adding images / albums. all new album / photo names will default to the folder/file names. btw: this "loose" vs "lose" typo is funny, so many people write loose |
|