Convert to RGB colorspace will not be multithreaded
Posted: 2014-08-01T13:33:40-07:00
Hello IMagicians,
I encountered an unexplained behaviour that i would like to understand.
I am using IM 6.5.4-7 on centos. If i am converting an image from jpeg to png and specifying the -colorspace Gray i will see that convert is spawning other threads to do the work (given i have MAGICK_THREAD_LIMIT > 1) but if I specify -colorspace RGB the work is always done on the main thread. Why is it? Can you explain this behavior? Thank you for reading. Normand
convert -colorspace Gray -bench 1000 image.jpg image.png # multiple threads
convert -colorspace RGB -bench 1000 image.jpg image.png # only main thread
I encountered an unexplained behaviour that i would like to understand.
I am using IM 6.5.4-7 on centos. If i am converting an image from jpeg to png and specifying the -colorspace Gray i will see that convert is spawning other threads to do the work (given i have MAGICK_THREAD_LIMIT > 1) but if I specify -colorspace RGB the work is always done on the main thread. Why is it? Can you explain this behavior? Thank you for reading. Normand
convert -colorspace Gray -bench 1000 image.jpg image.png # multiple threads
convert -colorspace RGB -bench 1000 image.jpg image.png # only main thread