determine "main" color of image border
Posted: 2006-09-05T08:31:53-07:00
I have a bunch of images used as wallpapers. Some can't be streched or extended to the size of the screen and can only be resized to have the height equal to the height of the screen (mainly "portrait" or vertical mode images).
These images are given to a wallpaper program that can add a border around the images that are not covering the full size of the screen (gnome-background on linux to be more precise).
The question is: how can I with IM find a color which matches the best the actual borders of the vertical images:
- imagine you have a drawing done on a solid background, I want to find the value of this background color;
- now the image is on a sort of gradient background (for example lots of different dark blue colors), I want to find the "most used" color from the borders of the image (at the end when telling the wallpaper program to add a border I will use this found color, so the overall wallpaper looks pretty)
I hope my question is "clear enough" (as my english because that's not my natural language :->)
These images are given to a wallpaper program that can add a border around the images that are not covering the full size of the screen (gnome-background on linux to be more precise).
The question is: how can I with IM find a color which matches the best the actual borders of the vertical images:
- imagine you have a drawing done on a solid background, I want to find the value of this background color;
- now the image is on a sort of gradient background (for example lots of different dark blue colors), I want to find the "most used" color from the borders of the image (at the end when telling the wallpaper program to add a border I will use this found color, so the overall wallpaper looks pretty)
I hope my question is "clear enough" (as my english because that's not my natural language :->)