Pixelpost

Authentic Photoblog Flavour

Colormebad Addon v0.3

 
Download (8.2 KB)

Developer Description

This addon extracts one of the most used color of an image and calculates eleven matching colors ranging from darkest to lightest color. The matching color scheme can be used to create a harmonic template. Color extraction and calculation happens only one time per image. The results are stored in the pixelpost database.

  • This addon can be used in the image, browse, about and comment template.
  • The new tags to use in your templates are:
    • <COLORID> - matches <IMAGE_ID> (to be used in browse and about template)
    • <COLOR1>,<COLOR2>,<COLOR3>, ... <COLOR11> - 11 colors from darkest to lightest color.

Credits

  • colors.inc.php written by Csongor Zalatnai and modified by Kepler Gelotte.
    • http://www.phpclasses.org/browse/package/3370.html
  • csscolor.php written by Patrick Fitzgerald
    • http://www.barelyfitz.com/projects/csscolor/

Changes

  • 0.3 bug fix. variable $base_hex isn't always set. results in colorless page.
  • 0.2 updated csscolor.php version that does not required PEAR - Thanks to Trickbooter!
  • 0.1 initial version

Demo

To see this addon in action, visit my photoblog at http://photo.van-sluis.nl. Be sure to select a colorful image!

Template

This addon is used by the Colormebad template.

Older Versions

Write A Review

  1. Perfect 5
    dennisbeekelaar 2 Years Ago Report as Spam

    Stunning addon! I got this one running but it seems to have a problem running on IE. www.dennisbeekelaar.com All other browsers seem to work fine. Cannot seem to get the error fixed since I am no html expert :)

  2. Perfect 5
    trickbooter 2 Years Ago Report as Spam

    Yay, I have got this working now. There was a requirement for PEAR in csscolor.php, which i did not have on my server. I found an older copy of csscolor.php without the pear dependency here http://svn.automattic.com/wpcom-themes/monotone/csscolor.php