ValueError: image has wrong mode on ImageChops.difference with mode F #4

Open
opened 2024-03-25 19:45:41 +01:00 by Benjamin_Loison · 0 comments
from PIL import Image, ImageChops

images = [Image.new('F', (1, 1)) for _ in range(2)]
print(ImageChops.difference(images[0], images[1]))

Actual context: Robust_image_source_identification_on_modern_smartphones/commit/8b0b58953d393f1a63e088452368c68c03dd7f91.

```py from PIL import Image, ImageChops images = [Image.new('F', (1, 1)) for _ in range(2)] print(ImageChops.difference(images[0], images[1])) ``` Actual context: [Robust_image_source_identification_on_modern_smartphones/commit/8b0b58953d393f1a63e088452368c68c03dd7f91](https://gitea.lemnoslife.com/Benjamin_Loison/Robust_image_source_identification_on_modern_smartphones/commit/8b0b58953d393f1a63e088452368c68c03dd7f91).
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Benjamin_Loison/Pillow#4
No description provided.