I have installed the sh script, and also bc onto my server.
I am trying to replicate the 'Pitch in Both Directions' example here: http://www.fmwconcepts.com/imagemagick/ ... /index.php
My code is currently:
Code: Select all
<?php
$docRoot = getenv("DOCUMENT_ROOT");
exec("bash ".$docRoot."/cylinderize.sh -m vertical -r 150 -l 310 -w 100 -p 6 -d both -e 1.4 -a 0 -v background -b none -f none");
?>
1. define the background image ('mug.png')
2. define the image to cylinderize ('sharks.png')
3. how/where I actually output the image in the browser
Can anyone help? Apologies if this is all straight forward and I am missing anything obvious but I am very new to this.