bug-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-GIFT] Thumbnail creation - problem with behaviour of convert


From: David Squire
Subject: [bug-GIFT] Thumbnail creation - problem with behaviour of convert
Date: Thu, 15 Feb 2001 10:20:44 +1100

Hi all,

I have found an occasional problem with the creation of thumbnail images
by gift. The ImageMagick utility "convert" interprets some images as
image *sequences*, since in fact image editing history etc. is also
stored in the file. In my case it seems that some parts of images which
were cropped have in fact been stored in the file as subsequent "scenes"
(ImageMagick terminology).

When convert encounters an image "thing.jpg" (for example), and tries to
create "thing_thumbnail_jpg.jpg", if thing.jpg is in fact a sequence, it
creates

thing_thumbnail_jpg.jpg.0
thing_thumbnail_jpg.jpg.1
...

The first one is the one that we actually want. No doubt it is possible
to override this behaviour of convert, but a quick skim of the man page
did not reveal this too me.

The problem is that the url2fts file now points to thumbnail files which
don't exist.

I fixed this for one of my collections using:

>foreach i (*.0)
foreach? mv $i $i:r
foreach? end

>rm *.[1-9]

Cheers,

David


--
Dr. David McG. Squire
Computer Science and Software Engineering, Monash University, Australia
http://www.csse.monash.edu.au/~davids/   http://cui.unige.ch/~viper/
Do/Don't want HTML mail? Let me know.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]