-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generated color scheme gives some weird colors #14
Comments
Hmmm that's weird. I've a couple single color wallpapers in my library and didn't got such an output. This shouldn't happen. I'll be sure to investigate this in the next couple of days. Thanks for the report |
Oh and more examples do help! Feel free to hit me up with any other images that end up in weird palettes. (If possible, run flavours with the |
I tested the picture on my setup, and apparently it generates okay colors (could be a little more blue, will look at it), but totally not that purple you got. What does your flavours and terminal configs look like? |
I'm glad to see that this is not intended behaviour :). It is strange that we don't get the same colours. I ran the generation for the problematic image, here is the output: $ flavours -v generate dark valley_night.png
Using directory: "/home/lcoyle/.local/share/flavours"
Using config file: "/home/lcoyle/.config/flavours/config.toml"
#b6f258 #b6f258
#16fc04 #16fc04
#0c17fa #0c17fa
#5eb1f6 #5eb1f6
#040b15 #040b15
#0d3883 #0d3883
#2f6fd8 #2f6fd8
#fc0510 #fc0510
#fc2767 #fc2767
#fc579a #fc579a
#0c2448 #0c2448
#68fc0c #68fc0c
#fc1444 #fc1444
#ff0824 #ff0824
Passes: 2
Passes: 2
#b6f258 #b6f258
#0c17fa #0c17fa
#4d4e95 #4d4e95
#63669a #63669a
#787e9f #787e9f
#8e96a3 #8e96a3
#a3aea8 #a3aea8
#b9c6ad #b9c6ad
#c3ceb9 #c3ceb9
#ced7c5 #ced7c5
#fe0723 #fe0723
#fc1444 #fc1444
#67fc0b #67fc0b
#3777d7 #3777d7
#fc569a #fc569a
#fc2667 #fc2667
#fc0510 #fc0510
#3275e3 #3275e3 Here is a screenshot of the same output: https://imgur.com/a/G6KYh1a I don't think it is related to my terminal config, as the same strange colors are applied to other programs. In any case, here is my terminal ( [options]
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
mouse_autohide = false
allow_bold = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
font = Hack 10
scrollback_lines = 10000
search_wrap = true
icon_name = utilities-terminal
clickable_url = true
cursor_blink = system
cursor_shape = block
browser = qutebrowser
filter_unmatched_urls = true
# *************************
# Start flavours
[colors]
# Base16 Generated
# Author: Flavours
foreground = #b9c6ad
foreground_bold = #b9c6ad
cursor = #b9c6ad
cursor_foreground = #4d4e95
background = rgba(77, 78, 149, 0.92)
# 16 color space
# Black, Gray, Silver, White
color0 = #4d4e95
color8 = #8e96a3
color7 = #b9c6ad
color15 = #ced7c5
# Red
color1 = #fe0723
color9 = #fe0723
# Green
color2 = #3777d7
color10 = #3777d7
# Yellow
color3 = #67fc0b
color11 = #67fc0b
# Blue
color4 = #fc2667
color12 = #fc2667
# Purple
color5 = #fc0510
color13 = #fc0510
# Teal
color6 = #fc569a
color14 = #fc569a
# Extra colors
color16 = #fc1444
color17 = #3275e3
color18 = #63669a
color19 = #787e9f
color20 = #a3aea8
color21 = #c3ceb9
# End flavours
# vim: ft=cfg Here is the template file (basically the base16 termite template with a slight change in the background color to add slight transparency): [colors]
# Base16 {{scheme-name}}
# Author: {{scheme-author}}
foreground = #{{base05-hex}}
foreground_bold = #{{base05-hex}}
cursor = #{{base05-hex}}
cursor_foreground = #{{base00-hex}}
background = rgba({{base00-rgb-r}}, {{base00-rgb-g}}, {{base00-rgb-b}}, 0.92)
# 16 color space
# Black, Gray, Silver, White
color0 = #{{base00-hex}}
color8 = #{{base03-hex}}
color7 = #{{base05-hex}}
color15 = #{{base07-hex}}
# Red
color1 = #{{base08-hex}}
color9 = #{{base08-hex}}
# Green
color2 = #{{base0B-hex}}
color10 = #{{base0B-hex}}
# Yellow
color3 = #{{base0A-hex}}
color11 = #{{base0A-hex}}
# Blue
color4 = #{{base0D-hex}}
color12 = #{{base0D-hex}}
# Purple
color5 = #{{base0E-hex}}
color13 = #{{base0E-hex}}
# Teal
color6 = #{{base0C-hex}}
color14 = #{{base0C-hex}}
# Extra colors
color16 = #{{base09-hex}}
color17 = #{{base0F-hex}}
color18 = #{{base01-hex}}
color19 = #{{base02-hex}}
color20 = #{{base04-hex}}
color21 = #{{base06-hex}} And here is the [[item]]
file='$XDG_CONFIG_HOME/termite/config'
template='termite'
subtemplate='transparent'
hook='killall -USR1 termite'
[[item]]
file='~/.Xresources'
template='xresources'
subtemplate='default-256'
rewrite=true
[[item]]
file='$XDG_CONFIG_HOME/qutebrowser/colors.py'
template='qutebrowser'
subtemplate='minimal'
rewrite=true
hook='sh -c "pgrep -x qutebrowser && qutebrowser :config-source"'
[[item]]
file='$XDG_CONFIG_HOME/zathura/zathurarc'
template='zathura'
[[item]]
file='$XDG_CONFIG_HOME/dunst/dunstrc'
template='dunst'
subtemplate='background'
hook = 'killall dunst'
[[item]]
file='$XDG_CONFIG_HOME/polybar/config'
template='polybar'
hook='polybar-msg cmd restart'
[[item]]
file='$XDG_CONFIG_HOME/bspwm/bspwm_colors.sh'
template='bspwm'
hook='sh -c "$XDG_CONFIG_HOME/bspwm/bspwm_colors.sh"'
rewrite=true
[[item]]
file='$XDG_CONFIG_HOME/rofi/themes/colors/colors.rasi'
template='rofi'
subtemplate='colors_minimal'
rewrite=true |
Here is a second example where the color generation is questionable, again it seems to favour very neon colors when the background it quite sombre. https://imgur.com/a/CMBP6RG |
hmm interesting, so I guess a workaround would be to convert al lthe problematic images to jpg. If you want to get the "original" images, let me know how I should send them to you. If this helps, here are the exif tags of the images:
I know very little about this stuff, but could it be due to the alpha channel ? see the |
Here's the exif of a png wallpaper i have that does work:
|
I don't think i see any obvious differences (this wallpaper in specific is in an indexed color space, but i have a couple that aren't)... But I'm sure we will get to the bottom of it soon enough |
Hi again,
I've really been liking
flavours
so far, the main gripe I have is that depending on the image the color scheme generation algorithm can give (imo) some weird color choices. Here is an example: https://imgur.com/a/U8Aa0kR as you can see the image is quite dark and basically just shades of blue, while the generated colors are very bright neon colors with not much blue, and the background color is a relatively bright purple.I can give more examples if needed. I suspect it has trouble finding colors when an image is made up of similar shades of a color ?
I understand that colors are very much subject to personal preference, so if you disagree and deem this to be expected behaviour then please feel free to close this issue.
The text was updated successfully, but these errors were encountered: