Skip to content

Commit

Permalink
remove fig2img
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Aug 28, 2024
1 parent 7ba6d7d commit 9ff900d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 41 deletions.
4 changes: 1 addition & 3 deletions pyllusion/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Pyllusion submodule.
"""

from .fig2img import fig2img
from .image_blob import image_blob, image_blobs
from .image_circle import image_circle, image_circles
from .image_line import image_line
Expand All @@ -24,6 +23,5 @@
"image_rectangle",
"image_mosaic",
"image_scramble",
"rescale",
"fig2img"
"rescale"
]
36 changes: 0 additions & 36 deletions pyllusion/image/fig2img.py

This file was deleted.

4 changes: 2 additions & 2 deletions pyllusion/image/image_mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def image_mosaic(image_list, ncols="auto", nrows="auto"):
ncols = int(np.ceil(np.sqrt(n)))
nrows = int(n / ncols)
elif ncols == "auto" and nrows != "auto":
ncols = int(n / nrows)
ncols = int(np.ceil(n / nrows))
elif ncols != "auto" and nrows == "auto":
nrows = int(n / ncols)
nrows = int(np.ceil(n / ncols))

# Generate image
new = PIL.Image.new("RGB", (image_list[0].width * ncols, image_list[0].height * nrows), color=(255, 255, 255))
Expand Down

0 comments on commit 9ff900d

Please sign in to comment.