Re: [Tracker] [PATCH] tracker needs imagemagick





Erlend Davidson wrote:
Jamie McCracken wrote:
Michael Biebl wrote:
2007/1/10, Saleem Abdulrasool <compnerd gentoo org>:
Hi.

While trying to come up with a patch for the thumbnailer, I noticed that
the image thumbnailing makes use of 'convert'.  This utility is actually
provided by imagemagick.  The attached patch adds in a check for
imagemagick (>=5.2.1) so that this dependency can also be tracked.
imagemagick is an (optional) runtime dependency, only needed if
thumbnailing is activated (which isn't by default), it's not a build
dependency. So imho I think it should *not* be added as a configure
check.
It would be a good idea though to add imagemagick to "Additional
recommended packages" in the README file. With the remark that it is
needed for creating thumbnails (as is evince-thumbnailer, so evince
should be added to that list, too)
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.
Also, you can trim about 30% off the time convert takes by using -antialias to turn off antialiasing... you don't really notice it at small sizes with photots, not sure about pdfs.



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