Saving edited image.....how??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

Saving edited image.....how??

Post 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
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

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

Post 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....
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

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

Post 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...
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

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

Post by azhan »

did anyone know how?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

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

Post 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.
Post Reply