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

Re: ImageMagick / convert



On Fri, Nov 23, 2007 at 04:23:34PM +0200, Riku Voipio wrote:
> On Fri, Nov 23, 2007 at 03:17:05PM +0100, Michael Lantzen wrote:
> > convert from the ImageMagick package is awfully slow on my N2100, it 
> > takes about 5 minutes to convert a 8mpixel jpg from the cam to a 
> > 640x480. When i loo at top then i see that convert is taking 98% 
> > processor time. When i look at the top then i see that it uses only 
> > about 5% user time but 95% system time. Does this mean that some kernel 
> > function that convert uses is very slow on the arm version of debian?
> 
> sounds like floating point operations, which the oldabi port does
> in kernel. armel port implements floats using softfloat which is
> much faster.

In the case of resizing pictures, you can use pnmscalefixed from the
netpbm package to resize your pictures. The result isn't as nice as when
you do use floating point, but at least it doesn't take 5 minutes.
Typical usage would be:

jpegtopnm $inputfile | pnmscalefixed -width=640 -height=840 | pnmtojpeg > $outputfile

-- 
<Lo-lan-do> Home is where you have to wash the dishes.
  -- #debian-devel, Freenode, 2004-09-22



Reply to: