Skip to content

Raise ValueError if Dib paste() box does not match image size#9815

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:imagewin_paste
Open

Raise ValueError if Dib paste() box does not match image size#9815
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:imagewin_paste

Conversation

@radarhere

Copy link
Copy Markdown
Member

Pillow/src/PIL/ImageWin.py

Lines 164 to 170 in b741b77

def paste(
self, im: Image.Image, box: tuple[int, int, int, int] | None = None
) -> None:
"""
Paste a PIL image into the bitmap image.
:param im: A PIL image. The size must match the target region.

This PR raises a ValueError if the box size does not match im size.

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.

1 participant