Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion easy_thumbnails/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def background(im, size, background=None, **kwargs):
# The image is already equal to (or larger than) the expected size, so
# there's nothing to do.
return im
im = colorspace(im, replace_alpha=background, **kwargs)
kwargs.setdefault('replace_alpha', background) #Avoid duplication in kwargs
im = colorspace(im, **kwargs)
new_im = Image.new('RGB', size, background)
if new_im.mode != im.mode:
new_im = new_im.convert(im.mode)
Expand Down