I want to use the GD image editor for just one function then switch back to ImageMagick

I want to use the GD image editor for just one function then switch back to ImageMagick