Jump to content

display correct picture


crouchjay

Recommended Posts

The process works in such, that when the user decides to crop an image, it gets stored in tmp.  The cropped image is displayed, where they have the choice of either NEW IMAGE, RECROP, SUBMIT

Here is the code for recrop selection
[code]if ($_POST['recrop']) {
unset($display);
unset($image);

            //Path to image
            $imgfile=$_REQUEST['display'];

            //Image Name
            $image=$_REQUEST['imgfile'];

            //Delete cropped image
            unlink($imgfile);
}

//If Image name found get Original Image
if($image != "") $display="userImages/$username/largeVersion/".$image;

//goto image crop html page
include_once( "HTML/createProfileImage.html" )
[/code]


So the original cropped image gets deleted from the file system, this has been proved, but after the second recrop of the image the original still displays until the refresh button is pushed.

If there is any more code you want to see just let me know.

Thanks

Jay

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.