-- Addon: Harmonious Color v1.1 --
This pixelpost addon analyses the image displayed in your image_template.html for example.
It will select the color with the Hue value that occurs the most in the image.
The output will be 3 hex color values, a "dark" one for big background areas, a "normal" color for smaller areas and a "bright" color for fonts.
If you don't like the automatically picked colors, just go into the admin panel and look in the "edit" tab of the corresponding image.
Here you can modify the 3 colors to your needs.
1.) Pixelpost 1.6 or later
2.) This plugin expects that the image folder is "/images" (pixelpost default setting)
1.) Extract the file "admin_harmonious.php" into the "/addons" folder of your pixelpost installation.
2.) Create a folder "/cache" in your pixelpost base directory (its the same place with the other pixelpost folders "addons", "admin", "includes", ...)
3.) CHMOD the folder "/cache" to "777" for write access
The following tags can be used within your pixelpost template:
/* these tags give you a hex color value beginning with # (for example #ffffff)*/
/* these tags give you a hex color value without # in the first place (for example ffffff)*/
User-Modifications of the "admin_harmonious.php":
1.) Lines 251 to 269 define the brightness and saturation levels for the 3 output colors.
For users of the old admin panel modification from v1.0:
Just delete the modified "images_edit.php" in the "/admin" folder and revert your old "images_edit.phpold" to "images_edit.php".
Delete the old "harmonious.php" in the "/addons" folder.
For questions and suggestions email to: harmonious(at)tomyeah.com
(8KB) (Last Update: 19.5.2007)
With the help from schonhose
's magical fingers it was possible to merge the old admin panel mod and the harmonious addon into one single file. this makes the installation easier and is bullet proof for further pixelpost updates.