convert command killed by OS (Googled before)
convert command killed by OS (Googled before)
Hi all.
Server: Amazon small instance
Free mem: 494728k
source file:
identify source.jpg
source.jpg JPEG 620x620 620x620+0+0 8-bit DirectClass 43.1kb
Version: ImageMagick 6.5.4-7 2012-05-09 Q16 OpenMP http://www.imagemagick.org
Command: convert -limit memory 300MB -limit area 0 source.jpg -crop 5x5 'image-%d.jpg'
Process killed.
Why ?
I read
http://www.imagemagick.org/script/architecture.php
And now I do not know what i must do ?
;(
Server: Amazon small instance
Free mem: 494728k
source file:
identify source.jpg
source.jpg JPEG 620x620 620x620+0+0 8-bit DirectClass 43.1kb
Version: ImageMagick 6.5.4-7 2012-05-09 Q16 OpenMP http://www.imagemagick.org
Command: convert -limit memory 300MB -limit area 0 source.jpg -crop 5x5 'image-%d.jpg'
Process killed.
Why ?
I read
http://www.imagemagick.org/script/architecture.php
And now I do not know what i must do ?
;(
Re: convert command killed by OS (Googled before)
The OS is killing your process because its consuming to much memory. Reduce your memory requirements:
- convert -limit memory 2MB ...
- convert -limit memory 2MB -limit map 4mb ...
Re: convert command killed by OS (Googled before)
I read before about it.
ANd you can see in my command
-limit memory 300MB
ANd you can see in my command
-limit memory 300MB
Re: convert command killed by OS (Googled before)
Did you try 2MB instead of 300MB like we advised? If so, what happened? Did it work?
Re: convert command killed by OS (Googled before)
Exuse me for long AFK.
command: convert -limit memory 2MB -limit map 4MB __.jpg -crop 5x5 'image-%d.jpg'
results: process killed
command: convert -limit memory 1MB -limit map 2MB __.jpg -crop 5x5 'image-%d.jpg'
results: process killed
command: convert -limit memory 2MB -limit map 4MB __.jpg -crop 5x5 'image-%d.jpg'
results: process killed
command: convert -limit memory 1MB -limit map 2MB __.jpg -crop 5x5 'image-%d.jpg'
results: process killed
Re: convert command killed by OS (Googled before)
i have only 494728k free mem.
command top show it
command top show it
Re: convert command killed by OS (Googled before)
Set '-limit memory 0 -limit map 0'. If that fails, you'll need a larger instance of a Amazon server to run ImageMagick.
Re: convert command killed by OS (Googled before)
-limit memory 0 -limit map 0 - same.
its very strange - spliting 620x620 image require > 300mb memory
its very strange - spliting 620x620 image require > 300mb memory
Re: convert command killed by OS (Googled before)
You may be running the Q16 (16-bits per pixel) version of ImageMagick, check with 'convert -version'. The Q8 (8-bits per pixel) version uses 1/2 the amount of memory as compared to the Q16 version.
Re: convert command killed by OS (Googled before)
Yeah ..you right.
Version: ImageMagick 6.5.4-7 2012-05-09 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Version: ImageMagick 6.5.4-7 2012-05-09 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Re: convert command killed by OS (Googled before)
One last thing, ImageMagick runs well on the iPhone and Android devices. Your Amazon instance must be severely constrained.
Who is online
Users browsing this forum: No registered users and 2 guests