| | |
Image functions in php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
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.
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
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?
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- About image mirroring using php (PHP)
- Overloading PHP Functions (PHP)
- Php Mysql Image Help Please!!! (PHP)
- php image resize quality (PHP)
- How can i call c++ functions in php? (PHP)
Other Threads in the PHP Forum
- Previous Thread: Php & Xhtml
- Next Thread: Test For Php Includes
| Thread Tools | Search this Thread |
apache api array basic beginner binary body broken cache cakephp class cms code computing confirm cron curl customizableitems database date date/time delete display dynamic echo email error file filter folder form forms forum function functions gc_maxlifetime google headmethod howtowriteathesis href htaccess html iframe image include ip javascript joomla limit link list login malfunction memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php phpmysql query question random recourse recursion regex script search select seo server sessions snippet source space sql static system table thesishelp trouble tutorial update upload url variable video web webdesign xml youtube






