Skip to content
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

Extend image spec to support replace colors #397

Closed
ishubin opened this issue Feb 16, 2016 · 0 comments
Closed

Extend image spec to support replace colors #397

ishubin opened this issue Feb 16, 2016 · 0 comments

Comments

@ishubin
Copy link
Member

ishubin commented Feb 16, 2016

This feature will be very handy for verifying the general layout of elements excluding the inner text.
e.g.:

some_object:
    image file img/some_object.png, filter replace-colors #000 #111 #222 #333 with  #fff

Or it could also support gradient replacement

some_object:
    image file img/some_object.png, filter replace-colors #000-#333 with #fff

Also it could be nice to have it replaced with dominant color by default if the with parameter is not specified

some_object:
    image file img/some_object.png, filter replace-colors #000-#333

Maybe it would be also possible to have some kind of pixel radius for color replacement. So that it not just replaces the single pixel but also the circle area around it. This way we could automatically remove small shadows of the text as well.

some_object:
    image file img/some_object.png, filter replace-colors #000-#333  with #fff radius 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant