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

[Cub] Add option to enhance background image #31

Open
mmaismma opened this issue Oct 9, 2020 · 1 comment
Open

[Cub] Add option to enhance background image #31

mmaismma opened this issue Oct 9, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mmaismma
Copy link
Member

mmaismma commented Oct 9, 2020

Description

Many hermits, not cubfan135 though, enhance their thumbnail's background image. Notable examples include rendog and Mumbo Jumbo.

These images are clearly brightened, saturated, and have increased contrast.

Possible solution(s)

CanvasRenderingContext2d has filter property which was made for like this purpose only. It is similar to the CSS filter property and accepts the same values.

Example:
There is a button. On clicking the button the image gets auto enhanced and a menu appears which can be used to customize the amount of saturation, brightness, contrast, etc.

@mmaismma mmaismma added the enhancement New feature or request label Oct 9, 2020
@mmaismma mmaismma added this to the v1.0.2 Cub's Contraption milestone Oct 9, 2020
@mmaismma
Copy link
Member Author

After some experimenting, I found that this filter expression serves nice as the default parameter:

contrast(110%) brightness(110%) saturate(110%)

The order is important. In this order, contrast gets applied first and saturate at last.

@mmaismma mmaismma self-assigned this Oct 19, 2020
@mmaismma mmaismma removed the good first issue Good for newcomers label Oct 20, 2020
@Hermit-Tools Hermit-Tools deleted a comment from mudiagauwojeya Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant