Convert Color Hex Values To RGB Using Php

Completed Posted Nov 12, 2008 Paid on delivery
Completed Paid on delivery

I'm looking for a script that will search through style sheets and replace colors defined with hex values (ex: color:#FFFFFF) with its rgb value (ex: color:rgb(255,255,255)). There will also be a mixture of named colors (ex: color:white) and rgb values already in the style sheets so it will need to skip over those.

I need this done ASAP.

Please let me know if you have any questions.

here's an example of how the script should work...

this:

<style>
.example {
background-color: #FF0000;
color: #FFFFFF;
border: 1px solid #CCCCCC;
}
</style>

should be converted to this:

<style>
.example {
background-color: rgb(255,0,0);
color: rgb(255,255,255);
border: 1px solid rgb(204,204,204);
}
</style>

PHP

Project ID: #342677

About the project

5 proposals Remote project Active Nov 12, 2008

Awarded to:

Remoddy

It's done. See my PM please.

$30 USD in 0 days
(9 Reviews)
4.0

5 freelancers are bidding on average $68 for this job

ay4

Ready to work. If you interesting write me pm. Thanks.

$50 USD in 0 days
(71 Reviews)
6.5
nexuslite

CSS Hex color values to RGB

$30 USD in 3 days
(43 Reviews)
5.8
SourceBurner

It's an easy job, I can do it right away! Regards

$30 USD in 0 days
(68 Reviews)
5.4
GsCreations

I have a hex to rgb function that will do exactly what you require. Can do this now and complete before end of day.

$200 USD in 1 day
(1 Review)
1.1