AbuOmair
AbuOmair

Reputation: 153

How to copy all information from image to another image using pillow python?

How can I copy all information from image1 to image2. Image1 contains GPS information and other information. the question is how take all these information from image1 and put into image2.?

Thanks.

Upvotes: 0

Views: 233

Answers (1)

Aarjav Kumar Jain
Aarjav Kumar Jain

Reputation: 66

import PIL
from PIL import Image

img1=Image.open('image1_path')
img2=Image.new(mode=img1.mode,size=img1.size)
img2.paste(img1)

Upvotes: 1

Related Questions