I'm newbie in PIL so for me it's hard to understand how I can do it, somebody helps me with it. In code, I only take two pictures and resized a transparent one. Now I don't know what to do next to paste it without .paste() class
def get_web_image (url):
img_data = requests.get(url).content
with open('picture1(bg)_1200x800.png', 'wb') as handler:
handler.write(img_data)
return img_data
def paste_image (source, destination, x, y, omit_color="None"):
im = Image.open(source)
pixels_newpaste = []
newsize = (200, 200)
im = im.resize(newsize)
im.save('picture2(done).png')
im.show()
paste_image ('picture2(transparent)_840x841.png', main_image, 1, 1)
main_pic()
#my_img_object = get_web_image ('https://avante.biz/wp-content/uploads/Baseball-Wallpapers/Baseball-Wallpapers-015.jpg')
I tried to make it using .getpixel(), but as I understand it requires only to draw in one color. So please help me to make this function




