image sorting in Linux
William Park
opengeometry-FFYn/CNdgSA at public.gmane.org
Sat Jan 21 21:02:31 UTC 2006
On Sat, Jan 21, 2006 at 12:22:35PM -0500, Byron Sonne wrote:
> Hey all,
>
> I've collected a large number of images in my time on this planet - and
> not just pr0n either ;)
>
> Problem is, they came from all over the place (3.5" disks from friends,
> cameras, flatbed scanners, email, web pages, search engines, etc.) and
> consequently do not have a consistent naming scheme. So far it's over
> 25000 images, and I have no intentions of correcting them all by hand or
> script.
>
> Does there exist a relatively easy to use program that will sort the
> images by their graphical similarity and then automatically rename them?
> I'd be happy if they were named from '1.jpg' to '26382.jpg'. I'm not
> after anything complicated.
Renaming them is easy.
count=1
for i in *.jpg; do
mv $i /tmp/$((count++)).jpg
done
mv /tmp/*.jpg .
But, how do you compare 2 JPG's?
>
> I know gqview has a very handy sort by similarity function; it's great
> and I use it to eliminate dupes. But it doesn't do reorganization as
> near as I can tell.
>
> I suppose I could rip the similarity code out of the gqview source and
> hack something together, but I'd rather not re-invent the wheel and do a
> half-assed job at it.
>
> Cheers,
> B
>
> p.s. On a unrelated note, thanks to all the folks who've sent in resumes
> to my employer. It's hard finding people and every bit of help counts.
> --
> The Toronto Linux Users Group. Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
--
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
http://freshmeat.net/projects/bashdiff/
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list