Page 1 of 1

Saving edited image.....how??

Posted: Sun Mar 29, 2009 8:04 am
by azhan
Hey guys,

I've successfully found a code that can make an rectangle on an image like ms paint
1) First, load the original image
2) Then, press a button "mark"
3) Then click on the original image to produce rectangular shape

all of the code for these step already done and the result like below..

Image

The problem here...whenever i click on the "save" button, the program only save the original image...without the rectangular shape...what seems the problem??

my "save" code is like this

------------------------------------------------------------------------
case "save":
copy($editDirectory.$imageName, $activeDirectory.$imageName);
break;
------------------------------------------------------------------------

the producing rectangular shape are in javascript code where else the save code are in php code....

help me...wuwuuwuw

azhan

Re: Saving edited image.....how??

Posted: Sun Mar 29, 2009 8:47 am
by php_east
here is your answer
azhan wrote:the producing rectangular shape are in javascript code where else the save code are in php code....

Re: Saving edited image.....how??

Posted: Sun Mar 29, 2009 9:59 am
by azhan
i know what u meant, I have another code that can grayscale the image which also in javascript..but when it come to save, the image was save in grayscale with no problem...

but grayscale is another pattern of transforming whereby it change the whole image...unlike the rectangular shape..it just stick on the image..and it doesnt save it together with the image...

Re: Saving edited image.....how??

Posted: Sat Apr 25, 2009 6:42 am
by azhan
did anyone know how?

Re: Saving edited image.....how??

Posted: Sat Apr 25, 2009 4:27 pm
by McInfo
Without telepathy, it is impossible to know what the Javascript and PHP scripts are doing. Can you post some code?

Edit: This post was recovered from search engine cache.