any quick way to replace photos with larger photos

iamjohngalt

Joined: 2009-10-24
Posts: 2
Posted: Sat, 2009-10-24 21:41

I want to up load about 100 larger images for photos that were already uploaded and keywords were entered (so I do not want to delete the old records.)
Is there a way to do this quickly?

Should I upload the photos and replace the originals using FTP to g2dataxxx/albums/albumname? I can see that the table Photoitem appears to have the photo sizes. Should I change those sizes to get the bigger size photos to be allowed?

---------------------------------------------------
A government big enough to give you everything you
want, is strong enough to take everything you have.
---------------------------------------------------

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-10-24 23:04

1 at a time:
http://codex.gallery2.org/Gallery2:Modules:reupload

I have never tried to replace items in the g2data/albums direcotry.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2009-10-25 01:35

I have (successfully) batch-uploaded a couple of thousand files over their namesakes in the g2data/albums structure without problems. But the replacements were the same sizes exactly as the old files.

You *ought* to be able to ftp over the old files, and change the file sizes in the PhotoItem table. Flush the database cache after. (At least, that was my conclusion last time I investigated.) You may have some transient problems with cached versions too. Try for half a dozen files first, then explore for problems.

 
iamjohngalt

Joined: 2009-10-24
Posts: 2
Posted: Sun, 2009-10-25 15:21

Thanks, alecmeyers, I did it and it worked fine after deleting the database cache.
---------------------------------------------------
A government big enough to give you everything you
want, is strong enough to take everything you have.
---------------------------------------------------