diff --git a/cozette_builder/imagegen.py b/cozette_builder/imagegen.py index b81dcb8..42c9abc 100644 --- a/cozette_builder/imagegen.py +++ b/cozette_builder/imagegen.py @@ -253,9 +253,8 @@ def expand(sample_path: Path, margin: int = 40, color: str = "#282c34"): def add_margins(sample_path: Path, color: str = "#282c34"): im: Image.Image = Image.open(sample_path).convert("RGB") - new_w = round((im.height / 10) * 16) im.load() new_im = ImageOps.pad( - im, (new_w, im.height), method=Image.NEAREST, color=color + im, (im.width * 2, im.height), method=Image.NEAREST, color=color ) new_im.save(sample_path) diff --git a/img/sample.png b/img/sample.png index 97e2ff8..31131d8 100644 Binary files a/img/sample.png and b/img/sample.png differ diff --git a/img/sample.txt b/img/sample.txt index b74cdde..9243dd2 100644 --- a/img/sample.txt +++ b/img/sample.txt @@ -5,20 +5,25 @@ $BLUE$┏━━━━━━━━━━━━━━━━━━━━━━━ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ $WHITE$A B C D E F G H I J K L M $BLUE$│ │ $WHITE$N O P Q R S T U V W X Y Z $BLUE$│ +╞═══════════════════════════╡ │ 1 2 3 4 5 6 7 8 9 0 │ +╞═══════════════════════════╡ │ $WHITE$a b c d e f g h i j k l m $BLUE$│ │ $WHITE$n o p q r s t u v w x y z $BLUE$│ +├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┤ │ $RED$() [] {} <> ? / \ : " ' ;$BLUE$ │ │ $RED$! @ # $ % ^ & * _ = + - |$BLUE$ │ │ , . ` ~$BLUE$ │ ╰───────────────────────────╯ $YELLOW$   -   $FG$╔═══════════════╗ +   + $BLUE$│ $FG$╔═══════════════╗ $BLUE$└──$FG$║ $GREEN$✓ ✔ $YELLOW$✕ ✖ $MAGENTA$✗ ✘ $FG$ ║$BLUE$▒ $FG$║ $BLUE$       $FG$║$BLUE$▒ $FG$╚═══════════════╝$BLUE$▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ + $MAGENTA$Pchnąć w tę łódź jeża lub ósm skrzyń fig.