ImageMagick:
Posted: Thu Feb 13, 2020 7:53 pm
[PROBLEM]
Trying to split an insanely-wide image (>500.000px width) in 30.000px sections:
Throws the following error:
[SOLUTION]
I've increased the "disk" size to allow to use more space for ImageMagick to swap.
Edit the following line in /etc/ImageMagic-6/policy.xml (on Debian 11.0):
Another thing to try would be to increase "memory", but there wasn't too much RAM in that machine so I went directly for "disk".
Trying to split an insanely-wide image (>500.000px width) in 30.000px sections:
Code: Select all
$ convert video_motion.png -crop 30000 video_motion-%02d.png
convert: DistributedPixelCache '127.0.0.1' @ error/distribute-cache.c/ConnectPixelCacheServer/244.
convert: cache resources exhausted `/opt/dva-profession/workflow/07-scene_cut_detection/final/v-20104/metadata/video_motion.png' @ error/cache.c/OpenPixelCache/3945.
convert: no images defined `video_motion-%02d.png' @ error/convert.c/ConvertImageCommand/3258.
[SOLUTION]
I've increased the "disk" size to allow to use more space for ImageMagick to swap.
Edit the following line in /etc/ImageMagic-6/policy.xml (on Debian 11.0):
Code: Select all
<policy domain="resource" name="disk" value="10GiB"/>