Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Best of luck to you Vijay - I recomend you stick with exec()</p> <p>Anyway just had a try and my code is below; you can see some changes I made and gave up with an error on the line: $new->functionImage ( FUNCTION_POLYNOMIAL, $functionImagearray );</p> <pre><code>// Did not like the %h // $sparseColorarray = array( 0, 0, black, 0, %h, white ); $sparseColorarray = array( 0, 0, black, 0, 20, white ); $functionImagearray = array( 4, -4, 1 ); $image = new imagick("output3.jpg"); $image-&gt;gammaImage(0.75); $image-&gt;modulateImage(100,130,100); $image-&gt;contrastImage(1); //$new = $image-&gt;clone(); $new = clone $image; $new-&gt;sparseColorImage( Imagick::SPARSECOLORMETHOD_BARYCENTRIC, $sparseColorarray ); $new-&gt;functionImage ( Imagick::FUNCTION_POLYNOMIAL, $functionImagearray ); // Did not like the % // $new-&gt;levelImage( 0, 50% ); $new-&gt;levelImage( 0, 50 ); // Can not find any options for this blur $image-&gt;setImageCompose ( BLUR ); $image-&gt;setOption( args, 5); $image-&gt;compositeImage( $new, COMPOSITE_BLEND, 0, 0 ); $image-&gt;writeImage( "tilt.jpg" ); $image-&gt;destroy(); </code></pre> <p>Reading the documentation and following your example code this is what I came up with. I could also not find anyware the options for $image->setImageCompose ( BLUR );</p> <p>It would be interesting to see if you ever get it working.</p> <p><strong>Just found out my Imagick version is to old for functionImage</strong></p> <p>Changed $new->functionImage line</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload