Currently it takes a 4 pixel square 2 pixels from the upper-left corner and averages the color space. Those averages are turned into RGB spec for CSS coloring.
Where to go if this needs more work
- Take a sample from the outer-most corner to get the background or border color. A border in our sample data is never white, so white can be assumed to be the correct background color if at least 2 of 4 are white.
- Another sample 3 pixels in should be taken from each corner. If the border wasn’t white, then this will provide the meaningful background color of the logo and ignore the designers attempt to box in the logo.
- Samples should be taken at the 50% marks on the walls to confirm something. Needs hypothesis.
- Outermost 2 pixes should be trimmed off of all sides and that should be the logo that is presented. If conditional, then based on findings above
if has border
.