Page 1 of 1

iOS: MagickWand on the GPU

Posted: 2016-12-23T07:26:20-07:00
by kylelol
Is it possible to get MagickWand to be processed on the GPU instead of the CPU?

I'm currently using MagickWand to created animated Gifs on an iPad Air 2, but it eats up the CPU. Any other suggestions of ways I can reduce this overhead would be appreciated !

Re: iOS: MagickWand on the GPU

Posted: 2016-12-23T09:22:23-07:00
by magick
ImageMagick supports OpenCL. If enabled, it will try to run certain operations on the GPU such as resizing, convolving, blurring, etc. However, it does not accelerate reading or writing images. If you want ImageMagick to yield the CPU, you can add a throttle policy to the policy.xml configuration:
  • <policy domain="resource" name="throttle" value="2"/>
Alternatively you are force the pixel cache to disk rather than memory with the -limit memory 1MB, -limit map 1MB command line options. This increases I/O and permits the CPU to attend to other processes on your device.