Henrik Edlund <
[email protected]> writes:
> On Thu, 31 Oct 2002, Gerald Oskoboiny wrote:
>
> GO> I use 'epinfo' for this, usually:
> GO>
> GO> epinfo -rf $W/%Y/%m/%d/%H-%M-%S.jpg IMG*
> GO>
> GO> This renames files based on the exif timestamps, using your
> GO> current timezone setting. (I have $W set to /home/gerald/www )
> GO>
> GO> epinfo comes with photopc [1], very useful.
>
> Mmm, yes, but I don't want to rename my files, just set their file
> modification time. :-) Their names can be anything, I use the file
> modification time to see when they were shot.
Epinfo is good for that too. I rename and set timestamps with it
using above and
epinfo -t -r *.jpg
My script then generate thumbnails and medium sized photos and uses
the original's timestamp for them and the generated html page for the
medium sized photo. I display last-modified on my photo pages using
server side includes.
for i in `ls *.jpg | egrep -v '(sm|med)' | sed -e 's/.jpg//'`; do touch -r $i.jpg $i-{med,sm}* ; done
> (I also forgot to mention in my earlier email that the script does not use
> GNU-ism either. Hence it should work, a rare thing today, in Unix
> environments without GNU utilities.)
Dunno offhand if epinfo works on solaris or not.
--
Ted Guild <
[email protected]>
http://www.guilds.net