iOS: MagickWand on the GPU

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
kylelol
Posts: 1
Joined: 2016-12-23T07:24:13-07:00
Authentication code: 1151

iOS: MagickWand on the GPU

Post 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 !
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: iOS: MagickWand on the GPU

Post 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.
Post Reply