PDA

View Full Version : Cataloging images under Knoppix



ezuk
12-24-2003, 01:50 PM
Hello,

This is actually more of a usability question:

I have several thousands of image files I took over the last year using my Olympus camera. The files are all named like numbers, such as IMG0003.JPG etc.

I would like to catalogue all of them, as quickly as possible, but manually. I'm looking for a way

1) to display an image and then
2) quickly type its description (=new filename) and
3) press RETURN, and
4) the file would be saved and the next image would be displayed for renaming

How would I go about accomplishing something like that with Knoppix or Linux in general?

If you have a better ideas as to how to sort my images so I could easily search them by participants or events later, please let me know.

Thank you.

ephrem
12-24-2003, 03:08 PM
I use jhead to rename my files.

$> jhead -nr%Y%m%d-%H%M%S ./*

I'm going off of memory, so I may have the variables wrong (i.e. wrong capitalization) but this command will take all the jpg files and convert them to something like 20031224-143059.jpg

Of course, this only works on jpg files and if you've used GIMP on any of them you effectively obliterated your exif data.

As for cataloging w/ categorical and keyword info, you'll need a multi-media database. If you find a great one under linux be sure to let me know. I've not been overly thrilled with what I've found so far.

I just found the following and it's features look promising: http://www.k-i-s.net/article.php?article=6

ephrem
12-24-2003, 03:48 PM
just found the following and it's features look promising: http://www.k-i-s.net/article.php?article=6

There's a demo of the software... it does look very promising, indeed! Quite an advance over gphotocoll.

chrisb
12-24-2003, 06:28 PM
for i in *
do
display $i &
read x
[ "$x" ] && mv $i $x
done
Seems the simplest way to me ...

linuxpopper
02-01-2004, 08:48 AM
This rough script might be usefull. It makes a nice html "index.htm" that will show thumbnails of all your images in the dir it is run from (also subdirectories). Maybe it can gi ve you some ideas.

#!/bin/bash

#imake dir for thumbnails
mkdir -p icons

#Find all files and store list in $picfiles
picfiles=$(find . -type f -name "*")

#start writing html file
cat <<EOD > index.htm
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>test</title>
</head>
<body>

<h2>Click on these for a close up!</h2>

EOD
#initialize the lastdir variable
lastdir="Nuttnzzzzzzzz"

#loop through files making thumbnails of each
#and a link to it in index.htm
for matchfile in $picfiles
do
#add an s in the filename for the icon dir
outname=$(echo $matchfile |sed 's/.jpg$/s.jpg/')
#remove the ./ from the path
icdest=$(echo $outname |sed "s/^.\///")
#let the user see some progress
echo "$matchfile"
#compose and make the dir in the icons dir
newdir1=$(echo "./icons/$icdest" |sed "s/\/[^/]*$//")
mkdir -p "$newdir1"
#make the icon (thumbnail)
convert -resize 150x105 $matchfile ./icons/$icdest
#is this a new dir?
if [ $lastdir != $newdir1 ]
then
#print dir name to page when dir changes
printdir=$(echo $icdest |sed "s/\/[^/]*$//")
echo "<h3>$printdir</h3>" >>index.htm
fi
lastdir=$newdir1
#write the index point in page
echo "<a href=\"$matchfile\"" >>index.htm
echo "target=_blank ONCLICK=\"window.open(" >>index.htm
echo "'$matchfile'); return false\" ><img src=" >>index.htm
echo "\"./icons/$icdest\" border=\"0\"></a>" >>index.htm
done

#finish writing html file
echo "</body></html>" >> index.htm