I need to merge two images (one is jpg and other one is png) based on its coordinate values. I have obtained coordinate value of both images and resized based on the size. I found a relevant answer here ,but it deals with only one pair of coordinates. Paste an image to another image at two given co-ordinates with altered opacity using PIL or OpenCV in Python
I checked the other link How can I paste an image to another image by comparing its coordinate values using PIL or opencv in Python? but still image is getting distorted. Pillow based merge will be better because my second image is png and pillow deals with the transparency of png files better. Can anyone suggest a better answer which deals with multiple coordinate value comparison in each images and merge?
https://stackoverflow.com/questions/66728579/how-to-paste-an-image-to-another-image-based-on-multiple-coordinate-comparison-i March 21, 2021 at 11:34AM
没有评论:
发表评论