How to use BILINEARWARP with PHP

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
handellphp

How to use BILINEARWARP with PHP

Post by handellphp »

Ive search the web for an hour and cannot seem to find any PHP / Imagemagick usage of on BILINEARWARP
from Freds Pages- http://www.fmwconcepts.com/imagemagick/ ... /index.php

I am trying to get sort of a reverse Star Wars text effect
Here is what I was thinking:

Code: Select all

<?php
$convert =  "~/apps/im/bin/convert";

$input="test_image.jpg";
$output = "image_result.png";

exec("$convert $input -matte -virtual-pixel transparent -distort perspective -f input \"0,0 255,20 255,255 233,255\" $output")

echo "<br><img src=\"". $output ."\"><br>";
echo "<br>im here and I am done<br>";
?>
Obviously Im missing something here.
Can anyone help?
Post Reply