Convert Color Hex Values To RGB Using Php
$30-250 USD
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>
Project ID: #342677
About the project
Awarded to:
5 freelancers are bidding on average $68 for this job
I have a hex to rgb function that will do exactly what you require. Can do this now and complete before end of day.