Что за ошибка OSError: cannot identify image file при наложении вотермарки на изображение?
from PIL import Image as PImage
def watermark_photo(self, input_image_path, output_image_path, watermark_image_path, position):
base_image = PImage.open(input_image_path)
base_image = base_image.convert('RGB')
watermark = PImage.open(watermark_image_path)
width, height = base_image.size
transparent = PImage.new('RGBA', (width, height), (0,0,0,0))
transparent.paste(base_image, (0,0))
transparent.paste(watermark, position, mask=watermark)
transparent.show()
transparent.save(output_image_path)
На ошибку указывает на строке: base_image = PImage.open(input_image_path)