John's Adventures

John's Adventures Forum » Support (John's Background Switcher)

Background switcher - background support

 (4 posts) (2 voices)
  • Started 7 months ago by bpaterson
  • Latest reply from John Conners
  1. bpaterson
    Member
    Posted 7 months ago #

    Your Background Switcher is bloody brilliant, clearly the best - and the leader - of getting support for changing the usual... I see where Microsoft is getting it's feet wet in the area.

    Here's the question then - how do you decide on the colour of the borders when the picture is rendered as "scale", not "stretched" or some combination thereof?

    Is there some benefit to exploring a generic colour (white, black, beige, tartan) or making a determination based on the, say, 4-bit colour that is most predominate?

    I'd be interested in your current algorithm as well as any thoughts on the above modification(s).

    Cheers,
    Brian

  2. John Conners
    Administrator
    Posted 7 months ago #

    You can choose a specific colour to use as the border on the 'Picture Handling' section of 'More Settings'. Note that by default it will 'Use an automatically chosen colour for picture borders' but you can change it to 'Use a custom colour for picture borders'.

    The algorithm that I use chooses pixels from the centre of the picture and at the intersection of each third of the picture, it then ranks them by brightness and chooses the middle one. The idea is that in photos the rule of thirds generally applies so it tries to pick a colour that'll complement the picture itself. In testing when I first implemented it the algorithm definitely worked a lot better than some of the others I tried!

  3. bpaterson
    Member
    Posted 7 months ago #

    Hmmm... Interesting. It definitely works. Thank you!

  4. John Conners
    Administrator
    Posted 7 months ago #

    You're welcome!


Reply To This Topic

You must log in to post.