Imagemagick Failing With Jcrop.

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply

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

    $convertString = "convert $source -crop ".$_POST['w'].""."x"."".$_POST['x']."+".$_POST['h']."+".$_POST['w']." $file";
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" />

Post Reply