convert: memory allocation failed SparseColorOption @ error/mogrify.c/SparseColorOption/552.
Posted: 2019-01-07T04:46:05-07:00
I'm using Imagemagick v 7.0.8-14 on Ubuntu 16.04
I'm using Fred's script dominantcolor to find the dominantcolor in an image. http://www.fmwconcepts.com/imagemagick/ ... /index.php
The script works fine on many images, but on some images it sends back the error
and returns the color #FFFFFF
As far as I can tell, these images have nothing particular: they are, just like the others, 4000x2664 jpg files of about 2MB.
I don't think I have memory limits on my system, everything is commented in policy.xml and convert -list resource gives
Here is an example of a file that is causing problems (here https://drive.google.com/file/d/1RiXQLk ... sp=sharing for uncompressed version):
I'm using Fred's script dominantcolor to find the dominantcolor in an image. http://www.fmwconcepts.com/imagemagick/ ... /index.php
The script works fine on many images, but on some images it sends back the error
Code: Select all
convert: memory allocation failed SparseColorOption @ error/mogrify.c/SparseColorOption/552.
As far as I can tell, these images have nothing particular: they are, just like the others, 4000x2664 jpg files of about 2MB.
I don't think I have memory limits on my system, everything is commented in policy.xml and convert -list resource gives
Code: Select all
Resource limits:
Width: 107.374MP
Height: 107.374MP
List length: -1
Area: 10.3409GP
Memory: 4.81535GiB
Map: 9.63071GiB
Disk: unlimited
File: 786432
Thread: 2
Throttle: 0
Time: unlimited