On Thu, 11 Jan 2007, Erlend Davidson wrote: > Erlend Davidson wrote: > > Actually, I noticed that evince-thumbnailer is quite slow compared to > > ImageMagick's 'convert'. You can just use: > > $ convert "pdf:inputfile.pdf[0]" -scale 128x128 "png:outfile.png" > > and it's much quicker (plus it removes the dependency on gnome - you > > already have imagemagick). Convert also generates much nicer looking > > image. The [0] is just to make sure it only converts the first page, > > and not the whole document.
I agree that in order to keep tracker desktop-neutral, it should use convert, and in that spirit, I have attached a patch to use convert. It does seem that convert also produces a nicer image. However, I was unable to reproduce the improvement in time, infact, convert took slightly longer, though I dont think its enough to justify not trying to use convert instead. Saleem Abdulrasool compnerd (at) gentoo (dot) org
Index: thumbnailers/application/pdf_thumbnailer =================================================================== --- thumbnailers/application/pdf_thumbnailer (revision 375) +++ thumbnailers/application/pdf_thumbnailer (working copy) @@ -1,4 +1,3 @@ #!/bin/sh -nice -n19 evince-thumbnailer -s $3 "$1" $2 - +nice -n19 convert "pdf:$1[0]" -scale $3x$3 "png:$2"
pgpcJWlwoNs6K.pgp
Description: PGP signature
_______________________________________________ tracker-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/tracker-list
