Skip to content

Commit

Permalink
[skip ci]: black/isort
Browse files Browse the repository at this point in the history
  • Loading branch information
black-isort-bot committed Aug 24, 2024
1 parent 5a631b0 commit 5791c42
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions PyPDFForm/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ def any_image_to_jpg(image_stream: bytes) -> bytes:
return image_stream

rgb_image = Image.new("RGB", image.size, (255, 255, 255))
rgb_image.paste(
image,
mask=image.split()[3] if len(image.split()) == 4 else None
)
rgb_image.paste(image, mask=image.split()[3] if len(image.split()) == 4 else None)

with BytesIO() as _file:
rgb_image.save(_file, format="JPEG")
Expand Down

0 comments on commit 5791c42

Please sign in to comment.