Use this class with images are already on the server

See all posts See thread Reply

Re: Use this class with images are already on the server new!
by Malinga, 11 years ago
@Colin

There is the process.

1. User should upload an image. Then user can see re sized image. (Ajax request)
2. User should select an area from the re sized image. Crop the image according to user's selection.
3. Then create another object. [$handle2->upload('path/to/local/file')] and apply cropped (step 2) image as a water mark
4. Then store in DB (file name only)

I have created 3 image objects ($handle1, $handle2, $handle3) to do this.

The image which on my server is static image. That image should be background image.Cropped image use as a watermark on the my image.

$handle= new upload("/home1/ribelzxxx/public_html/apps/xxxx/images/mergePhone.png");

When calling above statement will be deleted 'mergePhone.png' and renamed as 'mergePhone.png'. i want to keep 'mergePhone.png' in without rename. this image call every image processing.Reply
Re: Use this class with images are already on the server new!
by colin, 11 years ago
If I understand properly, you don't want your source image to be deleted, is that right? In that case, don't call $handle->clean() at the end of your process.Reply
Re: Use this class with images are already on the server new!
by Malinga, 11 years ago
@Colin

Thank you Colin. It's working properly. Thank you very much for the suggestion.

But, there is a problem. Can i prevent copying as a new image to the server?

MalingaReply