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
![Image](https://i.imgur.com/IqtEVvX.jpg)