Skip to content

Commit

Permalink
save_image_to_disk parameter ordering fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inFocus7 committed Jan 21, 2024
1 parent 6dc3b30 commit 850ac82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processing/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def save_images_to_disk(images: gr.data_classes.RootModel, image_type: gr.Dropdo
return save_dir


def save_image_to_disk(image_path: str, name: Optional[str] = None, save_dir: str = default_path,
image_suffix: Literal[".png", ".jpg", ".webp"] = ".png") -> Optional[str]:
def save_image_to_disk(image_path: str, name: Optional[str] = None, image_suffix: Literal[".png", ".jpg", ".webp"] = \
".png", save_dir: str = default_path) -> Optional[str]:
"""
Saves an image to disk.
:param image_path: The path to the temporary image.
Expand Down

0 comments on commit 850ac82

Please sign in to comment.