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

Add background color functionality to the remove function #414

Merged
merged 5 commits into from
Mar 31, 2023
Merged

Add background color functionality to the remove function #414

merged 5 commits into from
Mar 31, 2023

Conversation

Flippchen
Copy link
Collaborator

@Flippchen Flippchen commented Mar 29, 2023

Description:

This PR implements the feature requested in issue #394, allowing users to add a background color to the images processed by the remove function.

Changes:

  • Added an optional color parameter to the remove function, which takes a list of three integers representing RGB color values.

  • Created a helper function apply_background_color to apply the desired background color to the image.

  • Modified the remove function to call apply_background_color before returning the result when the color parameter is provided.

  • Added CLI Support

With this update, users can now easily set the background color of their images while using the remove function, enhancing the library's flexibility and use cases.

@danielgatis could you check especially the CLI support? I did something like this never before.

This time I also didn't rearanged your whole project instead of adding a class. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants