Extend GraphicsMagick

I would like to be able to pass values into GraphicsMagick, such as height and width, colours, etc. Currently these values all need to be hard coded when using GraphicsMagick to manipulate images as the component does not accept dynamic input.