Now with Ambilight
As you may have noticed, i edited a bit. I’ve implemented a new gimmick for my images, it’s like Ambilight in a TV. A small script gets the average color of the first image and fills the background with it. Not just flat, but with a small gradient from the top left, to black in the lower right corner.
As usual, this was just a conversion of a simple idea i had with a pixelpost-addon months ago, and ended up in something on this page. I’m pretty sure i can find some more usages for a snippet like this, maybe something like this guy – haha ;-)
If you’re interested in what i’ve done, here is the code:
<?php $post_id = $post->ID; $single = true; $key = image; if ( $image_value = get_post_meta($post_id, $key, $single) ) : // Read … read the story…
