• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

image manipulation with php and javascript 2

Hi Experts,

Someone has already kindly pointed me in the right direction with regards to php image library...

But i was wondering whether anyone could suggest a way to build this image with php... based on a user defined colour...

Many thanks in advance
0
maccaj51
Asked:
maccaj51
  • 5
  • 3
1 Solution
 
Ray PaseurCommented:
Could you give us a little more to go on?  What image do you want to build?  Maybe post an image here for us to work with?  Thanks, ~Ray
0
 
maccaj51Author Commented:
Im sorry Ray... I thought i had... Here goes again... Arrow
0
 
Mohamed AbowardaSoftware EngineerCommented:
Check out this library:
http://wideimage.sourceforge.net
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Ray PaseurCommented:
Thanks.  A quick look at that tells me that it has 103 different colors in an un-optimized palette.  Un-optimized is good because we can probably load it directly into an image resource.  What would you like to do with it?
0
 
maccaj51Author Commented:
Hi Ray

Id like to be able to change the blue... My users can login and i would like them to be able to pick a colour and swap it.

Hi Medo337

I'll have a look.. thanks
0
 
Ray PaseurCommented:
Sounds a little like a custom application and for that you might want to hire a professional developer.  But I suggest you leave the question open a little longer and see if anyone has a code example of changing the colors.  The notes are pretty sparse (and academic and old) on some of the PHP image functions which leads me to believe that this library does not get a lot of real-world use.  My first-cut guess is that these two functions may become part of the solution, but that is just a guess.

http://us2.php.net/manual/en/function.imagecolorallocatealpha.php
http://us2.php.net/manual/en/function.imagecolorclosestalpha.php
0
 
Ray PaseurCommented:
Whoa!  Maybe this is the magic tool...
http://php.net/manual/en/function.imagefilter.php
0
 
maccaj51Author Commented:
Ray - You're a hero!!!!!
0
 
Ray PaseurCommented:
A hero?  Ha!  Thanks for the points and best of luck with it, ~Ray
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now