Delete every other file? Delete every other file?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Delete every other file?

Started by crazycordy, June 13, 2013, 06:00:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crazycordy

I'm not sure if this is possible, but I have coppermine installed on a fansite I run, (grimm-fan.com/gallery) and I currently have around 2,200 photos in my screencaps albums.  I'm hoping to reduce the number of photos in half to save disk space, and I would really like to do it without having to delete my files and re-upload the smaller amount. 

Is there any way to delete every odd/even numbered file or every other file within coppermine? I know I could delete them within FTP, but then how would I get rid of the empty files showing up in the albums? 

I'm prepared to re-do everything, I just thought I would see if anyone knows a better way to accomplish this.

Thanks :)

ΑndrĂ©

Coppermine uses a database which links the actual picture files to the albums. So you'd need to delete the picture references from the database and the file system (FTP). I hadn't looked closer at your gallery, but if your files contain a prefix/suffix with a number, it's easy to remove the pictures from the database in batch. If you've just FTP access to your server, it's probably more effort to remove them, unless you know an FTP client which supports such tasks.