Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions eden/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import cv2
import base64
import numpy as np
import PIL.Image
from PIL.Image import Image as ImageFile
from PIL.JpegImagePlugin import JpegImageFile
from PIL.PngImagePlugin import PngImageFile
from PIL import Image
from io import BytesIO

Expand Down Expand Up @@ -42,9 +44,9 @@ def encode(image):
or isinstance(
image,
(
PIL.JpegImagePlugin.JpegImageFile,
PIL.PngImagePlugin.PngImageFile,
PIL.Image.Image,
JpegImageFile,
PngImageFile,
ImageFile,
),
)
):
Expand Down