Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Delete every other file?  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

crazycordy

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Delete every other file?
« on: June 13, 2013, 06:00:40 am »

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 :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Delete every other file?
« Reply #1 on: August 28, 2013, 12:05:44 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.