Page 1 of 1

ImageMagick:

PostPosted: Thu Feb 13, 2020 7:53 pm
by peter_b
[PROBLEM]
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


Throws the following error:
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:
Code: Select all
<policy domain="resource" name="disk" value="10GiB"/>


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".