Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding in a new optional parameter bg_radius. This parameter allows users to round the edges of the background text box so it is not sharp cornered.
This new parameter is optional and utilises the pil libraries rounded_rectangle.
https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.rounded_rectangle
This has been around since pil 8.2.
Moviepy requires: "pillow>=9.2.0,<11.0",
Therefore, this is compatible.
Note I have extensively tested on my local computer. I decided to make the change as it was much simpler than me manually creating this on my end (I have also seen others eg. on reddit with the same issue).
I have not done many PR's before - please let me know if I have not done this correctly. I tried to follow the documentation but as I am newer to this with git I am unsure if I did it in the right place etc.
tests/
(I did this on my local computer but am unsure how to add it for this PR)