Is there a way to do a perspective distortion like this http://www.imagemagick.org/Usage/distorts/#perspective in GraphicsMagick? Of course, I can always switch back to ImageMagick, but I'd rather not.
I'm planning to use it in PHP, but command line is an option, too.