11 lines
373 B
Python
11 lines
373 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
from PIL import Image
|
|
|
|
def handle_reference_images(img_binary_api: Any = None, temp_file_ref: str = "", loaded_client_for_upload: Any = None, **_: Any):
|
|
output = img_binary_api if isinstance(img_binary_api, list) else []
|
|
if temp_file_ref:
|
|
output.append(Image.open(temp_file_ref))
|
|
return output
|