How animate dated filename like "history20070611s202635195.jpg"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabrizio

    How animate dated filename like "history20070611s202635195.jpg"

    My web cam save a file each minute with a name like this
    "history2007061 1s202635195.jpg "
    Do you know a script in php that can animate the last 60 jpg ? What I
    like is something like this:



    The problem is that this script work only with sequential file name
    like "picture001 ", "picture002 ", etc and not with dated filename like
    "history2007061 1s202635195.jpg "

    Thank you in advance for your help.

    Fabrizio

  • Schraalhans Keukenmeester

    #2
    Re: How animate dated filename like "history20 070611s20263519 5.jpg"

    At Tue, 12 Jun 2007 07:17:09 +0000, Fabrizio let h(is|er) monkeys type:
    My web cam save a file each minute with a name like this
    "history2007061 1s202635195.jpg "
    Do you know a script in php that can animate the last 60 jpg ? What I
    like is something like this:
    >

    >
    The problem is that this script work only with sequential file name
    like "picture001 ", "picture002 ", etc and not with dated filename like
    "history2007061 1s202635195.jpg "
    >
    Thank you in advance for your help.
    >
    Fabrizio
    The number following the 's' represents the time, I assume? (HHMMSSmmm) ?
    You could put them in an array and sort that using string comparison
    or by extracting the time string and casting it to integers and sort
    those. Or just sort them based on their maketime perhaps? Then feed the
    sorted pics to your image rotation function.

    --
    Schraalhans Keukenmeester - schraalhans@the .Spamtrapexampl e.nl
    [Remove the lowercase part of Spamtrap to send me a message]

    "strcmp('apples ','oranges') < 0"

    Comment

    Working...