Skip to content

Commit

Permalink
fix: fix the infinite-zoom results do not show in image gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
linjiX committed Apr 1, 2024
1 parent 36e8725 commit 142841a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iz_helpers/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from datetime import datetime
import math, time, os
import numpy as np
from PIL import Image, ImageFilter, ImageDraw
Expand Down Expand Up @@ -247,8 +248,9 @@ def prepare_output_path(request: gr.Request):
isCollect = shared.opts.data.get("infzoom_collectAllResources", False)
output_path = paths.private_outdir().joinpath("infinite-zooms")

save_path = output_path.joinpath("videos")
save_path = output_path / "videos" / datetime.now().strftime('%Y-%m-%d')

isCollect = False
if isCollect:
save_path = save_path.joinpath("iz_collect" + str(int(time.time())))

Expand Down

0 comments on commit 142841a

Please sign in to comment.