Advanced search  

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]

Pages: [1]   Go Down

Author Topic: current way to name files  (Read 5876 times)

0 Members and 1 Guest are viewing this topic.

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
current way to name files
« on: March 31, 2004, 01:50:28 am »

I have a bunch of images and have had problems with things getting out of order in Coppermine. I've also had similiar problem with other thumbnail programs.

When naming files, I named them a1.jpg , a2.jpg. a3.jpg and so on. Sometimes, file like

a1069.jpg  will showup before
a107.jpg

I'm wondering what best way to rename files to keep order would be.

If I had same number of characters for each filename, like
a1, a2, a3, .. a9
b1, b2, b3 .. b9

this might fix it.  When batch adding pictures, I notice that it usually adds each file numerically the way it should with 1 coming before 2, etc.  So, then I selected sort by date added in Config area in Coppermine.  However, some images apparrently are added out of order. I think if Imagemagic is busy doing one image, it will skip to another. So, images aren't always added in complete order I think.

Anyone have thoughts on this?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
current way to name files
« Reply #1 on: March 31, 2004, 07:51:40 am »

haven't experienced any "funny" behaviour, always worked as expected - maybe someone else experienced this?

Computer are of course stupid, so if you add a1.jpg, a9.jpg and a10.jpg, they will be sorted as a1, a10, a9...

That's why I batch-rename all my pic series before I upload them - I use the tool 1-4a rename to add leading zeros to my pics, so they become 001.pg, 002.jpg etc (instead of 1.jpg, 2.jpg...).

GauGau
Logged

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
current way to name files
« Reply #2 on: March 31, 2004, 05:00:06 pm »

That is a good idea.
Logged

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
current way to name files
« Reply #3 on: March 31, 2004, 06:49:40 pm »

I'll have to play around with that program or another one. It seem like your naming style might work. The only potential problem I can see is when it goes from 9 to 10 it adds another 0,  so 00009,  000010. I will see if I can rename and skip the last 0. I think there is probably option to delete trailing 0's
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
current way to name files
« Reply #4 on: March 31, 2004, 07:06:57 pm »

Well I just downloaded it, and it works correctly for me. Using the 'add lead' set at 0, and 3 digits, 9 becomes 009, and 10 becomes 010.
(http://www.langportrd.f2s.com/ss/screen_014.jpg)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
current way to name files
« Reply #5 on: March 31, 2004, 08:46:12 pm »

cool tip
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 21 queries.