Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Imagemagick Failing With Jcrop.

images php coding issues or problems here.

Moderators: macek, egami, gesf

Imagemagick Failing With Jcrop.

Postby HopelessCode » Mon Jun 18, 2012 8:26 am

I'm not sure if it my code or jcrop itself making this fail. Below is the code for the post method.



Code: Select all
if(!empty($_POST)){
    $convertString = "convert $source -crop ".$_POST['w'].""."x"."".$_POST['x']."+".$_POST['h']."+".$_POST['w']." $file";
    exec($convertString);
}


below is the actual form (html)
Code: Select all
    <form action="cropper.php" method="post" onsubmit="return checkCoords();">
   <input type="hidden" id="x" name="x" />
   <input type="hidden" id="y" name="y" />
   <input type="hidden" id="w" name="w" />
   <input type="hidden" id="h" name="h" />
<input type="submit" value="Crop" />
</form>
HopelessCode
New php-forum User
New php-forum User
 
Posts: 5
Joined: Mon Jun 18, 2012 7:57 am

Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.