resize image - showing only half if the pic
<p>this script some how showing half of the image not the whole image... i am trying to figure this out what is wrong here</p>

<p>any help please</p>

<p>// The file</p>

<pre><code>                        $ftimage = $_POST['feature_image'];

                        // maximum height 150 X width 150
                        $width = 150;
                        $height = 150;


                        // Dimensions Set
                        list($width_orig, $height_orig) = getimagesize($ftimage);

                        $ratio_orig = $width_orig/$height_orig;

                        if ($width/$height &gt; $ratio_orig) {
                           $width = $height*$ratio_orig;
                        } else {
                           $height = $width/$ratio_orig;
                        }

                        // Resample
                        $image_p = imagecreatetruecolor($width, $height);
                        $image = imagecreatefromjpeg($ftimage);
                        imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);

                        // Output
                        $image = imagejpeg($image_p, null, 100);
                        var_dump($image);
</code></pre>
