Skip to content
Open
Show file tree
Hide file tree
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
Binary file added .DS_Store
Binary file not shown.
8 changes: 7 additions & 1 deletion miniwob/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def get_screenshot(
if icc_profile:
orig_icc = ImageCms.ImageCmsProfile(BytesIO(icc_profile))
srgb_icc = ImageCms.createProfile("sRGB")
pil_image = ImageCms.profileToProfile(pil_image, orig_icc, srgb_icc)
pil_image = ImageCms.profileToProfile(
pil_image, orig_icc, srgb_icc, inPlace=False
)

if pil_image is None:
raise ValueError("profileToProfile returned None unexpectedly")

return pil_image


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"Gymnasium>=1.0.0a1",
"Gymnasium>=1.0.0",
"Pillow>=9.0.0",
"selenium>=4.5.0",
"numpy>=1.18.0",
Expand Down
Loading