Image functions in php

Reply

Join Date: Sep 2006
Posts: 54
Reputation: mahe4us is an unknown quantity at this point 
Solved Threads: 0
mahe4us's Avatar
mahe4us mahe4us is offline Offline
Junior Poster in Training

Image functions in php

 
0
  #1
Nov 22nd, 2006
Hi all,

I would like to provide some features to the users when they are uploading their images in my site. For example once the user uploaded their image into the site. They have options to change the image as following.

convert the image to black & white.
Invert the image into vertically and horizantally
raise and decrease the brightness of the image

Please help me if anyone have ideas in this.

Thanks
Mahe4us
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Image functions in php

 
0
  #2
Nov 22nd, 2006
Take a look at the GD image library functions. Its installed on most PHP servers...

http://www.php.net/gd

It can do all that you mentioned. The alternative is PHP Imagemagick Lib, but not as supported.

If you want to do that on the browser without making calls back to the PHP server you may have to use Flash or SVG. Flash is the more supported, those SVG is the standard to work towards, and support is gaining.

SVG: http://www.w3.org/Graphics/SVG/

Unfortunately Adobe is discontinuing its support for SVG (since its got Flash) so it may not pan out after all..

I'm not sure if plain JS can accomplish what you want on the browser, but it would be interesting to take a look into...

You may try looking into the open source galleries, to see how they do their Image cropping, rotating, etc. I think I saw Coppermine or Gallery doing this stuff with just JS.. might be wrong though.

www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 54
Reputation: mahe4us is an unknown quantity at this point 
Solved Threads: 0
mahe4us's Avatar
mahe4us mahe4us is offline Offline
Junior Poster in Training

Re: Image functions in php

 
0
  #3
Nov 23rd, 2006
Hello Digital-Ether,

Thanks for your reply. I have been working now in image functionalities. But it seems to be little bit difficulty. Anyway I give my thanks to you for answer my continous questions. I have searched in the open source but its not found like i expected.

Regards,
Mahendran
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Image functions in php

 
0
  #4
Nov 23rd, 2006
Heres the links to the open source gallery projects I mentioned:

Gallery - http://gallery.menalto.com/
Coppermine - http://coppermine-gallery.net/index.php

It would be a bit of searching, but both should have image manipulation functions.

Do you want to manipulate the images server side or client side?
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 54
Reputation: mahe4us is an unknown quantity at this point 
Solved Threads: 0
mahe4us's Avatar
mahe4us mahe4us is offline Offline
Junior Poster in Training

Re: Image functions in php

 
0
  #5
Nov 29th, 2006
Hello Digital-Ether,

Sorry for not reply quickly.... Ya i want to manipulate the images on server side.. For example if the user press the button to change a color image to black and white image then the process are carried out by server and return to the browser.....

Thanks.....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC