Skip to content

Commit

Permalink
runner: Accept truncated images in routes
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed Feb 29, 2024
1 parent 0defbac commit 62931de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runner/app/routes/image_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
import random
import os

from PIL import ImageFile

ImageFile.LOAD_TRUNCATED_IMAGES = True

router = APIRouter()

logger = logging.getLogger(__name__)
Expand Down
4 changes: 4 additions & 0 deletions runner/app/routes/image_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
import random
import os

from PIL import ImageFile

ImageFile.LOAD_TRUNCATED_IMAGES = True

router = APIRouter()

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 62931de

Please sign in to comment.