when I want to "disable" OpenMP while using the convert command I simply use
Code: Select all
convert -limit thread 1 in.png out.jpg
My question: Is there a way to limit the maximum thread amount programmatically?
I know about setting MAGICK_THREAD_LIMIT=1 in /etc/Environment - but I would like to set the limit in my code.
Best regards.