Page 1 of 1
Convert very slow. Help my.
Posted: 2010-08-05T07:48:20-07:00
by Aliens85
ImageMagick-6.6.0
1.jpg: image 3264x2448 - 2.8MB
Debian 5, VDS 300MHz 64MB:
# apt-get update
# apt-get dist-upgrade
# time convert -resize 100x75 1.jpg 2.jpg
real 0m0.622s
user 0m1.392s
sys 0m0.084s
Processor in top: 2%
Debian 5, VDS 1GHz 512MB:
# apt-get update
# apt-get dist-upgrade
# time convert -resize 100x75 1.jpg 2.jpg
real 0m2.653s
user 0m4.723s !!!!!!!!!!!!!
sys 0m0.097s
Processor in top: 200% !!!!!!!!!!!!
Help my please. My site offline!!!
Re: Convert very slow. Help my.
Posted: 2010-08-05T07:57:28-07:00
by magick
Type
Does it mention OpenMP as one of the features? If so that could be the source of the slow-down. There is one or two releases of libgomp that cause ImageMagick to slow down significantly rather than speed it up as intended.
If that is not the problem, post a URL to your image and the command you used. We'll see if we can reproduce the timing you're getting.
Re: Convert very slow. Help my.
Posted: 2010-08-05T08:02:19-07:00
by Aliens85
# convert -version
Version: ImageMagick 6.6.0-4 2010-03-17 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
image:
http://www.idemvgorod.ru/1.jpg
Re: Convert very slow. Help my.
Posted: 2010-08-05T08:47:52-07:00
by Aliens85
I do now?
Re: Convert very slow. Help my.
Posted: 2010-08-05T08:55:16-07:00
by Aliens85
# dpkg -s libgomp1
Package: libgomp1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 84
Maintainer: Debian GCC Maintainers <
debian-gcc@lists.debian.org>
Architecture: i386
Source: gcc-4.4
Version: 4.4.4-7
Depends: gcc-4.4-base (= 4.4.4-7), libc6 (>= 2.6)
Description: GCC OpenMP (GOMP) support library
GOMP is an implementation of OpenMP for the C, C++, and Fortran 95 compilers
in the GNU Compiler Collection.
Homepage:
http://gcc.gnu.org/
Re: Convert very slow. Help my.
Posted: 2010-08-05T09:06:54-07:00
by magick
Install ImageMagick-devel if you don't have it already. Now download the latest ImageMagick source from
ftp://ftp.imagemagick.org/pub/ImageMagick. Now type:
- tar xvfz ImageMagick-6.6.3-2.tar.gz
cd ImageMagick-6.6.3-2
./configure --disable-openmp
make
make install
That puts ImageMagick in /usr/local/{bin,lib,share}. Now rerun your command as /usr/local/bin/convert. Do you get reasonable timing on the command now?
Re: Convert very slow. Help my.
Posted: 2010-08-05T09:59:42-07:00
by Aliens85
Re: Convert very slow. Help my.
Posted: 2010-08-05T10:11:44-07:00
by fmw42
# time convert -resize 100x75 1.jpg 2.jpg
This probably will not make a difference now, but correct syntax is:
convert 1.jpg -resize 100x75 2.jpg
see
http://www.imagemagick.org/Usage/basics/#cmdline
In the future, this may be important.
Re: Convert very slow. Help my.
Posted: 2010-08-05T10:29:34-07:00
by Aliens85
command [options] input_image output_image
Re: Convert very slow. Help my.
Posted: 2010-08-05T14:53:48-07:00
by fmw42
Aliens85 wrote:command [options] input_image output_image
options before the input are special cases for types such as PDF where you must specify something that is not stored in the image, such as density or you need to change the colorspace from cmyk to rgb when opening the image when you don't have the correct profiles or gs device. Most options are specified in the second [options] field below:
command [options] input_image [options] output_image
Re: Convert very slow. Help my.
Posted: 2010-08-06T11:20:52-07:00
by Aliens85
thank you
Re: Convert very slow. Help my.
Posted: 2012-07-06T02:26:58-07:00
by littke
I was able to solve this without recompiling by using the solution found in this thread:
http://www.daniloaz.com/en/617/systems/ ... agemagick/