Skip to content

Commit

Permalink
adjust capoo_draw capoo_rip
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Apr 18, 2023
1 parent 65a14b5 commit 7e67e23
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 3 deletions.
Binary file removed docs/images/capoo_draw.gif
Binary file not shown.
Binary file removed docs/images/capoo_rip.gif
Binary file not shown.
4 changes: 2 additions & 2 deletions meme_generator/memes/capoo_draw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def capoo_draw(images: List[BuildImage], texts, args):
.resize((175, 120), keep_ratio=True, inside=True, bg_color="white")
)
params = (
(((27, 0), (200, 16), (171, 134), (0, 108)), (34, 22)),
(((27, 0), (199, 15), (173, 129), (0, 108)), (39, 24)),
(((27, 0), (207, 12), (179, 142), (0, 117)), (30, 16)),
(((28, 0), (207, 13), (180, 137), (0, 117)), (34, 17)),
)
raw_frames = [BuildImage.open(img_dir / f"{i}.png") for i in range(6)]
for i in range(2):
Expand Down
Binary file modified meme_generator/memes/capoo_draw/images/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meme_generator/memes/capoo_draw/images/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meme_generator/memes/capoo_draw/images/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meme_generator/memes/capoo_draw/images/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meme_generator/memes/capoo_draw/images/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meme_generator/memes/capoo_draw/images/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion meme_generator/memes/capoo_rip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@


def capoo_rip(images: List[BuildImage], texts, args):
img = images[0].convert("RGBA").resize((150, 100), keep_ratio=True)
img = (
images[0]
.convert("RGBA")
.resize((150, 100), keep_ratio=True, inside=True, bg_color="white")
)
img_left = img.crop((0, 0, 75, 100))
img_right = img.crop((75, 0, 150, 100))
params1 = [
Expand Down

0 comments on commit 7e67e23

Please sign in to comment.