S
S
Semyon Petrenko2016-01-10 19:41:40
Python
Semyon Petrenko, 2016-01-10 19:41:40

Why is the output color different when displaying the same image?

The image is loaded through the tkinter and PIL libraries. There are no color processors. The second display is lighter than the first. What is causing this?
0e27e6e5f1354070940d54d16970be46.png

gameSpace = Canvas(top, width=1000, height=600, bg = "lightblue", cursor = "circle")
gameSpace.pack()

openImg=Image.open("example.png")
image=ImageTk.PhotoImage(openImg)
imgSprite=gameSpace.create_image(100,100, image=image)

lab1 = Label(image=image, bd=0)
lab1.image = image
lab1.place(relx=0.2, rely=0.2, anchor="nw")

I understand that one image is attached to the canvas, and the second is not. The difference is this, but why does blending with the background appear?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dom1n1k, 2016-01-10
@Pogremix

The eyedropper says the colors are the same. Although subjectively, the left rectangle does seem a little lighter. This is pure perception.

Z
zelsky, 2016-01-10
@zelsky

Am I the only one who didn't see the difference?

V
Vladimir, 2016-01-10
@vintello

381ee77ec8144c328003132ec06f4a42.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question