i tried copying the icc profile and applying it to the jpg image but it returns icc profile as none
here is the code
from PIL import Image
original = Image.open("image.png")
icc_profile = original.info.get("icc_profile")
new=original.convert('RGB')
new.save("image.jpg", icc_profile=icc_profile)
I guess you just have to save it? :)
img = Image.open("image.png")
img.save("image.jpg")
Voila!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.