Could I have a Python function that uses PIL to generate a 64x64 thumbnail for every PNG in a directory and saves it as .thumbnail.png?
system
kya mere paas ek paythan fnction ho saktaa he jo ek nirdeshika main prayek PNG ke liye 64x64 thambanel utpann karne ke liye PIL kaa upyog karata he or ise .thumbnail.png ke rup main bachaata he?
user
Generate_thumbnails fnction ek nirdeshika main prayek PNG fil ke liye ek thambanel utpann karegaa.

pil aayaat chhavi se
aayaat oes
def generate_thumbnails (nirdeshika):
    Os.Listdir (nirdeshika) main fil naam ke liye:
        aadhaar, ext = os.path.splitext (fil naam)
        yadi ext.lower () == ".png":
            im ke rup main image.open (infile) ke saath:
                im.thumbnail (64, 64)
                im.save (fil + ".thumbnail", "png")
assistant
<|system|>
</s>
<|user|>
kya mere paas ek paythan fnction ho saktaa he jo ek nirdeshika main prayek PNG ke liye 64x64 thambanel utpann karne ke liye PIL kaa upyog karata he or ise .thumbnail.png ke rup main bachaata he?</s>
<|assistant|>
Generate_thumbnails fnction ek nirdeshika main prayek PNG fil ke liye ek thambanel utpann karegaa.

pil aayaat chhavi se
aayaat oes
def generate_thumbnails (nirdeshika):
    Os.Listdir (nirdeshika) main fil naam ke liye:
        aadhaar, ext = os.path.splitext (fil naam)
        yadi ext.lower () == ".png":
            im ke rup main image.open (infile) ke saath:
                im.thumbnail (64, 64)
                im.save (fil + ".thumbnail", "png")</s>
