I have a typical source image with a 3:4 aspect ratio. I also have a set of coordinates that I need to map the image onto in a separate image. The coordinates are not perf
Look into ImageMagick's Freeform Distorts.
I have some examples of the distort operators on my site ( http://www.rubblewebs.co.uk/imagemagick/operators/distort.php ) - using php but you will get the idea.
You probably want the shepards method.
$cmd = "$input -matte -virtual-pixel transparent".
" -distort Shepards \"0,0 0,0 0,100 20,100 0,200".
" 0,200 133,200 133,180 266,200 266,200 266,100".
" 246,100 266,0 266,0 133,0 133,20\" ";
exec("convert $cmd shepards.png");