text from label then distort perspective
Posted: 2010-08-11T13:22:05-07:00
I have some code that creates text using label.
Then I am using a distort perspective on the top left, bottom left, top right, bottom right points of the created image above.
Problem is that it only seems to distort the white text instead of the entire image itself. So it leaves me with a black box with the specified width and height at 0,0 with no distortion ... so it's like the white text get's distorted outside of the black...
Any ideas on how I can pursue this?
Code: Select all
$final = $path."convert -size ".$maxwidth."x".$maxheight." -background black -kerning 20 -font ".$font." -gravity center -fill white label:'".$text."' final.png";
Problem is that it only seems to distort the white text instead of the entire image itself. So it leaves me with a black box with the specified width and height at 0,0 with no distortion ... so it's like the white text get's distorted outside of the black...
Any ideas on how I can pursue this?