Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
PHP image color change
Old 11-09-2009, 04:03 AM PHP image color change
Novice Talker

Posts: 10
Name: Eduards
Trades: 0
Is it possible on php change pictures black colour to any other?
I need that user have possibility to choose colour and im wondering is it possible to do it on php, i have a hundred of pictures and i need at least 10 colours for each. all pictures are black and white like example.

if its not possible on php maybe you can suggest way how to doit?
thnx

example:
phpcoder848 is offline
View Public Profile Visit phpcoder848's homepage!
 
 
Register now for full access!
Old 11-09-2009, 10:21 AM Re: PHP image color change
Mad182's Avatar
Skilled Talker

Posts: 54
Name: Madars
Location: Latvia
Trades: 0
One (not the fastest way) would be to use http://www.verot.net/php_class_upload.htm to:
1) invert image colors
2) invert color you want to use
3) tint image
4) invert image colors back to normal

demo: http://exs.lv/mad182/phpcolortest/ and http://exs.lv/mad182/phpcolortest/demo.php?hex=aa11ee
source code: http://exs.lv/mad182/phpcolortest/demo.phps

Or you can try to read about http://php.net/manual/en/function.im...hablending.php and some other image manipulation functions.
__________________
There's no place like 127.0.0.1

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Mad182; 11-09-2009 at 10:23 AM..
Mad182 is offline
View Public Profile Visit Mad182's homepage!
 
Old 11-09-2009, 12:37 PM Re: PHP image color change
Novice Talker

Posts: 10
Name: Eduards
Trades: 0
Thnx this is all information i need, those examples and info are grate.


p.s. Forši ka vienīgais atbildēja no latvijas
phpcoder848 is offline
View Public Profile Visit phpcoder848's homepage!
 
Old 11-14-2009, 11:41 PM Re: PHP image color change
freezea's Avatar
Experienced Talker

Posts: 45
Trades: 0
The closest to a solution of that kind is to use an image with a colours section as it's backdrop, and the figure as transparant, then change the background colour of the image. best solution would be to use a series of images unless it's completely infeasible.
__________________

Please login or register to view this content. Registration is FREE
: Web-based Excel-like Java reporting tool.
freezea is offline
View Public Profile
 
Closed Thread     « Reply to PHP image color change
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21892 seconds with 12 queries