Add custom exif feature

pull/29/head
LEv145 2023-06-22 00:53:41 +02:00
parent 4f7f19d032
commit 0f1e52bb92
1 changed files with 11 additions and 0 deletions

11
hakuimg/custom_exif.py Normal file
View File

@ -0,0 +1,11 @@
from PIL import Image, ImageFilter
def run(np_img, text):
if not text:
return np_img
img = Image.fromarray(np_img)
img.info["parameters"] = text
return img