from tkinter import *
from PIL import Image, ImageTk


def sprite(picture, res1, res2):
    im = Image.open(picture).convert("RGBA").resize((res1, res2), Image.BOX)
    pic = ImageTk.PhotoImage(im)
    cor = Image.open(picture)
    print(cor.mode)
    return pic

6869413f2205710ef2eb09c677d35a5246fdf03b
<mask token>

<mask token>


def sprite(picture, res1, res2):
    im = Image.open(picture).convert('RGBA').resize((res1, res2), Image.BOX)
    pic = ImageTk.PhotoImage(im)
    cor = Image.open(picture)
    print(cor.mode)
    return pic

from tkinter import *
from PIL import Image, ImageTk


def sprite(picture, res1, res2):
    im = Image.open(picture).convert('RGBA').resize((res1, res2), Image.BOX)
    pic = ImageTk.PhotoImage(im)
    cor = Image.open(picture)
    print(cor.mode)
    return pic

from tkinter import *
from PIL import Image, ImageTk


def sprite(picture, res1, res2):
    im = Image.open(picture).convert("RGBA").resize((res1, res2), Image.BOX)
    pic = ImageTk.PhotoImage(im)
    cor = Image.open(picture)
    print(cor.mode)
    return pic
