diff --git a/.gitattributes b/.gitattributes index 8c103596094276a4a204f651005781ca5f8aff1b..ac8f8e25e5e04739b0d6a42d1b51be5839b18c15 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1822,3 +1822,33 @@ memes_emoji_nsfw/fleshlight_taimanin_asgi/images/0.png filter=lfs diff=lfs merge memes_emoji_nsfw/fleshlight_xingnai/images/0.png filter=lfs diff=lfs merge=lfs -text memes_emoji_nsfw/mihoyo_elysia_come/images/0.png filter=lfs diff=lfs merge=lfs -text memes_emoji_nsfw/moistening_water/images/0.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/1.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/10.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/11.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/12.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/13.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/14.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/15.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/16.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/17.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/18.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/19.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/2.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/20.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/21.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/22.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/23.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/24.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/25.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/26.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/27.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/28.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/29.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/3.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/30.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/4.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/5.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/6.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/7.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/8.png filter=lfs diff=lfs merge=lfs -text +memes_emoji_nsfw/spraypee/images/9.png filter=lfs diff=lfs merge=lfs -text diff --git a/memes_emoji_nsfw/nailoong_do/images/22.png b/memes_emoji_nsfw/nailoong_do/images/22.png new file mode 100644 index 0000000000000000000000000000000000000000..50e0e1d7a76727455bab52c865f234520bed853f Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/22.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/23.png b/memes_emoji_nsfw/nailoong_do/images/23.png new file mode 100644 index 0000000000000000000000000000000000000000..8d2002fcc1616b9ff2810d9b4c654ab0a0939670 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/23.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/24.png b/memes_emoji_nsfw/nailoong_do/images/24.png new file mode 100644 index 0000000000000000000000000000000000000000..27f0e6ca1993cf67d4de29cd46c71d49b1fc3745 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/24.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/25.png b/memes_emoji_nsfw/nailoong_do/images/25.png new file mode 100644 index 0000000000000000000000000000000000000000..2da6d9448139c393bd81f61cf72d4075cde0d2bc Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/25.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/26.png b/memes_emoji_nsfw/nailoong_do/images/26.png new file mode 100644 index 0000000000000000000000000000000000000000..fb30a711460c77ea30bf822be8153215f3b765e9 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/26.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/27.png b/memes_emoji_nsfw/nailoong_do/images/27.png new file mode 100644 index 0000000000000000000000000000000000000000..a238b0a5826145d570001a130a161da6c77190aa Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/27.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/28.png b/memes_emoji_nsfw/nailoong_do/images/28.png new file mode 100644 index 0000000000000000000000000000000000000000..c7c2715be0e2de4cba9d1b667a33e147377bacf8 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/28.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/29.png b/memes_emoji_nsfw/nailoong_do/images/29.png new file mode 100644 index 0000000000000000000000000000000000000000..94a03da1c0fcd2ed77d8dde2babf22dd49027ae3 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/29.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/3.png b/memes_emoji_nsfw/nailoong_do/images/3.png new file mode 100644 index 0000000000000000000000000000000000000000..af50c9424357822e791cc790333fd5f53761fc61 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/3.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/30.png b/memes_emoji_nsfw/nailoong_do/images/30.png new file mode 100644 index 0000000000000000000000000000000000000000..c55a9913f7ff2faafc9c579d5c596bae84d0c467 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/30.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/31.png b/memes_emoji_nsfw/nailoong_do/images/31.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f95a80eea2c22b2db3c4447f2dac467bea3ead Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/31.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/32.png b/memes_emoji_nsfw/nailoong_do/images/32.png new file mode 100644 index 0000000000000000000000000000000000000000..6dbc05ea7e9881635ee5cbf5b46d2f5d2acc49e6 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/32.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/33.png b/memes_emoji_nsfw/nailoong_do/images/33.png new file mode 100644 index 0000000000000000000000000000000000000000..952018eeb32436d8123e9f608a9da96a66f8459c Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/33.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/34.png b/memes_emoji_nsfw/nailoong_do/images/34.png new file mode 100644 index 0000000000000000000000000000000000000000..d0c1146bb74669f527d5724e0f9f6b809de30288 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/34.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/35.png b/memes_emoji_nsfw/nailoong_do/images/35.png new file mode 100644 index 0000000000000000000000000000000000000000..f77a220bd3f8682a7d58b681709b8315d328966f Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/35.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/36.png b/memes_emoji_nsfw/nailoong_do/images/36.png new file mode 100644 index 0000000000000000000000000000000000000000..9bd61f3c52012a1fd67ee7ccfef26e1c13217839 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/36.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/37.png b/memes_emoji_nsfw/nailoong_do/images/37.png new file mode 100644 index 0000000000000000000000000000000000000000..3beb00f61a1cf7a4651648c34c36e371bf1815e0 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/37.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/38.png b/memes_emoji_nsfw/nailoong_do/images/38.png new file mode 100644 index 0000000000000000000000000000000000000000..c7d487201f1e99548815bfbbf2cd6e607bee1d7c Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/38.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/39.png b/memes_emoji_nsfw/nailoong_do/images/39.png new file mode 100644 index 0000000000000000000000000000000000000000..d4eddab59f7ae6597ba9b65ca6c935b3f21ec2fc Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/39.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/4.png b/memes_emoji_nsfw/nailoong_do/images/4.png new file mode 100644 index 0000000000000000000000000000000000000000..43c95126dffae5b50b3c0178b1500e2e0eb98281 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/4.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/40.png b/memes_emoji_nsfw/nailoong_do/images/40.png new file mode 100644 index 0000000000000000000000000000000000000000..f36cb994c8ae38d45e76fd522c0c8df2cb96a83b Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/40.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/41.png b/memes_emoji_nsfw/nailoong_do/images/41.png new file mode 100644 index 0000000000000000000000000000000000000000..c40565c36e0d879a948ffeeedf4b0e9bb583abbc Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/41.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/42.png b/memes_emoji_nsfw/nailoong_do/images/42.png new file mode 100644 index 0000000000000000000000000000000000000000..121f2174f778ffabbfc0ad6da5fb3c01c9e1e923 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/42.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/43.png b/memes_emoji_nsfw/nailoong_do/images/43.png new file mode 100644 index 0000000000000000000000000000000000000000..939a5d384e8ee0c1de63aca520ad66bcd6dbbfae Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/43.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/44.png b/memes_emoji_nsfw/nailoong_do/images/44.png new file mode 100644 index 0000000000000000000000000000000000000000..976ebafc91bfeca2071513f64de74fa1a49029e0 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/44.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/45.png b/memes_emoji_nsfw/nailoong_do/images/45.png new file mode 100644 index 0000000000000000000000000000000000000000..da6802deb6f8c3353aed49b7c69f518260ca66d4 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/45.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/46.png b/memes_emoji_nsfw/nailoong_do/images/46.png new file mode 100644 index 0000000000000000000000000000000000000000..6c06ac50c6a2523409ce0bc41d8f9a9289ecc4b7 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/46.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/47.png b/memes_emoji_nsfw/nailoong_do/images/47.png new file mode 100644 index 0000000000000000000000000000000000000000..1c085ee1cfbf3d846a2ffd3d1d1c5b4c722ac809 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/47.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/48.png b/memes_emoji_nsfw/nailoong_do/images/48.png new file mode 100644 index 0000000000000000000000000000000000000000..e616efeed772cc4f268c72a965675408dfcf4269 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/48.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/49.png b/memes_emoji_nsfw/nailoong_do/images/49.png new file mode 100644 index 0000000000000000000000000000000000000000..ce9bdc225db88fa34f2f77520ee2db111076d07c Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/49.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/5.png b/memes_emoji_nsfw/nailoong_do/images/5.png new file mode 100644 index 0000000000000000000000000000000000000000..0c940ab2e02630356cb581745063449914f71c8c Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/5.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/50.png b/memes_emoji_nsfw/nailoong_do/images/50.png new file mode 100644 index 0000000000000000000000000000000000000000..b1d2c9f74674803e1efb02bf565e559e27990d76 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/50.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/51.png b/memes_emoji_nsfw/nailoong_do/images/51.png new file mode 100644 index 0000000000000000000000000000000000000000..9a4d603a110daf22070071b77ff00ee6e019c20c Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/51.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/52.png b/memes_emoji_nsfw/nailoong_do/images/52.png new file mode 100644 index 0000000000000000000000000000000000000000..775570ce1ae9b1337cda58dc34ad8855cc9e5493 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/52.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/6.png b/memes_emoji_nsfw/nailoong_do/images/6.png new file mode 100644 index 0000000000000000000000000000000000000000..d393033dda99cbebbacf4f4262ff8b95cb915aae Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/6.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/7.png b/memes_emoji_nsfw/nailoong_do/images/7.png new file mode 100644 index 0000000000000000000000000000000000000000..bdd08e6349a4042b38d64d6b2f213b7f75632578 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/7.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/8.png b/memes_emoji_nsfw/nailoong_do/images/8.png new file mode 100644 index 0000000000000000000000000000000000000000..9c79320e7003ab9918aaacff5c872352e23a2c7f Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/8.png differ diff --git a/memes_emoji_nsfw/nailoong_do/images/9.png b/memes_emoji_nsfw/nailoong_do/images/9.png new file mode 100644 index 0000000000000000000000000000000000000000..d9911f59bb97cb7407283f2fde6341b444b4b1d7 Binary files /dev/null and b/memes_emoji_nsfw/nailoong_do/images/9.png differ diff --git a/memes_emoji_nsfw/oral_sex/__init__.py b/memes_emoji_nsfw/oral_sex/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..72cd3bb765d557e25fea3d9dea66b0e5b88eb321 --- /dev/null +++ b/memes_emoji_nsfw/oral_sex/__init__.py @@ -0,0 +1,60 @@ +from datetime import datetime +from pathlib import Path + +from meme_generator import add_meme +from meme_generator.utils import save_gif +from PIL.Image import Image as IMG +from pil_utils import BuildImage + +img_dir = Path(__file__).parent / "images" + +def oral_sex(images: list[BuildImage], texts, args): + # 坐标参数保持不变 + self_locs = [(30, 37), (36, 42)] # 己方头像位置 (x,y) + user_locs = [(67, 99), (71, 98)] # 对方头像位置 (x,y) + + # 处理己方头像(添加旋转) + self_head = ( + images[0] + .convert("RGBA") + .resize((58, 58), keep_ratio=True) + .circle() + .rotate(15) # 保持15度旋转 + ) + + # 处理对方头像(移除旋转) + user_head = ( + images[1] + .convert("RGBA") + .resize((48, 48), keep_ratio=True) + .circle() # 移除rotate(90) + ) + + frames: list[IMG] = [] + for i in range(2): + # 获取模板尺寸 + template = BuildImage.open(img_dir / f"{i}.png") + + # 创建透明画布(与模板同尺寸) + frame = BuildImage.new("RGBA", template.size) + + # 先贴两个头像(底层) + frame.paste(user_head, user_locs[i], alpha=True) # 对方头像 + frame.paste(self_head, self_locs[i], alpha=True) # 己方头像 + + # 最后覆盖模板图(上层) + frame.paste(template, (0, 0), alpha=True) # 关键修改点 + + frames.append(frame.image) + + return save_gif(frames, 0.05) # 保持原帧率 + +add_meme( + "oral_sex", + oral_sex, + min_images=2, + max_images=2, + keywords=["口"], + date_created=datetime(2025, 5, 27), + date_modified=datetime(2025, 6, 14), +) \ No newline at end of file diff --git a/memes_emoji_nsfw/oral_sex/images/0.png b/memes_emoji_nsfw/oral_sex/images/0.png new file mode 100644 index 0000000000000000000000000000000000000000..85e50ecb4a32bf8b366bec1e1e4fc75fc3571d58 Binary files /dev/null and b/memes_emoji_nsfw/oral_sex/images/0.png differ diff --git a/memes_emoji_nsfw/oral_sex/images/1.png b/memes_emoji_nsfw/oral_sex/images/1.png new file mode 100644 index 0000000000000000000000000000000000000000..5d052a8154887c60e0d908bfe4e69dcd2ee61f29 Binary files /dev/null and b/memes_emoji_nsfw/oral_sex/images/1.png differ diff --git a/memes_emoji_nsfw/sitdown_do/__init__.py b/memes_emoji_nsfw/sitdown_do/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..725de0f8e393dd52fa9ca0ad6f36f4334ff7d1ab --- /dev/null +++ b/memes_emoji_nsfw/sitdown_do/__init__.py @@ -0,0 +1,51 @@ +# 导入必要的模块 +from datetime import datetime +from pathlib import Path + +from PIL.Image import Image as IMG # 导入PIL的Image类并重命名为IMG +from pil_utils import BuildImage # 导入用于构建和操作图像的BuildImage类 +from meme_generator.tags import MemeTags + +from meme_generator import add_meme # 导入添加meme模板的函数 +from meme_generator.utils import save_gif # 导入保存GIF的函数 + +# 获取当前文件所在目录的路径,并拼接images子目录路径 +img_dir = Path(__file__).parent / "images" + +def sitdown_do(images: list[BuildImage], texts, args): + + user_head = images[0].resize((215, 215)).convert("RGBA") + + # 初始化帧列表,用于存储每一帧图像 + frames: list[IMG] = [] + + positions = [ + (180, 55), (180, 68), (181, 111), # 1-3 + ] + + # 处理所有帧 + for i in range(3): + frame_num = (i % 3) + 1 + frame = BuildImage.open(img_dir / f"{frame_num}.png").convert("RGBA") + + # 创建一个新的图像,首先粘贴用户头像作为背景 + new_frame = BuildImage.new("RGBA", frame.size) + new_frame.paste(user_head, positions[i], alpha=True) + + # 然后将原始帧内容粘贴到上面 + new_frame.paste(frame, (0, 0), alpha=True) + + frames.append(new_frame.image) + + # 将所有帧保存为GIF,动图平均帧率: 0.15 + return save_gif(frames, 0.15) + +add_meme( + "sitdown_do", # 模板的唯一标识符 + sitdown_do, # 处理函数 + min_images=1, # 需要的最小图片数量 + max_images=1, # 需要的最大图片数量 + keywords=["坐撅"], # 搜索关键词 + date_created=datetime(2025, 8, 21), # 创建日期 + date_modified=datetime(2025, 9, 4), # 修改日期 +) \ No newline at end of file diff --git a/memes_emoji_nsfw/sitdown_do/images/1.png b/memes_emoji_nsfw/sitdown_do/images/1.png new file mode 100644 index 0000000000000000000000000000000000000000..fb417acf251df88be65dd2f3bec1ceaaec78c750 Binary files /dev/null and b/memes_emoji_nsfw/sitdown_do/images/1.png differ diff --git a/memes_emoji_nsfw/sitdown_do/images/2.png b/memes_emoji_nsfw/sitdown_do/images/2.png new file mode 100644 index 0000000000000000000000000000000000000000..3a41e87085e2ed4128a6d3f5345e569b8888f61e Binary files /dev/null and b/memes_emoji_nsfw/sitdown_do/images/2.png differ diff --git a/memes_emoji_nsfw/sitdown_do/images/3.png b/memes_emoji_nsfw/sitdown_do/images/3.png new file mode 100644 index 0000000000000000000000000000000000000000..8acac13ec8a4fa81f4466f7c0a7ca48890ecacdf Binary files /dev/null and b/memes_emoji_nsfw/sitdown_do/images/3.png differ diff --git a/memes_emoji_nsfw/spraypee/__init__.py b/memes_emoji_nsfw/spraypee/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1f88125bc8c11a13f33df2dba67a7e1fa7c9fdec --- /dev/null +++ b/memes_emoji_nsfw/spraypee/__init__.py @@ -0,0 +1,35 @@ +from datetime import datetime +from pathlib import Path +from PIL.Image import Image as IMG +from pil_utils import BuildImage +from meme_generator import add_meme +from meme_generator.utils import save_gif + +img_dir = Path(__file__).parent / "images" + +def spraypee(images: list[BuildImage], texts, args): + user_head = images[0].resize((185, 185)).circle().convert("RGBA") + + frames: list[IMG] = [] + + for i in range(30): + frame_num = i + 1 + frame = BuildImage.open(img_dir / f"{frame_num}.png").convert("RGBA") + + new_frame = BuildImage.new("RGBA", frame.size) + new_frame.paste(user_head, (425, 261), alpha=True) + new_frame.paste(frame, (0, 0), alpha=True) + + frames.append(new_frame.image) + + return save_gif(frames, 0.04) + +add_meme( + "spraypee", + spraypee, + min_images=1, + max_images=1, + keywords=["滋你"], + date_created=datetime(2026, 4, 17), + date_modified=datetime(2026, 4, 17), +) \ No newline at end of file diff --git a/memes_emoji_nsfw/spraypee/images/1.png b/memes_emoji_nsfw/spraypee/images/1.png new file mode 100644 index 0000000000000000000000000000000000000000..475fb07d95f1134d99021c1ee46d859f9a0699f4 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7097a0e263b8b66ec0eb4b9ef107647c0bc3ad9c85bc6889d7c9ce002ce6f03 +size 152546 diff --git a/memes_emoji_nsfw/spraypee/images/10.png b/memes_emoji_nsfw/spraypee/images/10.png new file mode 100644 index 0000000000000000000000000000000000000000..8eb7a99fc44c010263369af90e5635e17553ec67 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e68aab34327f91e8abaa93d4a180b8eb97ddaecb328d4b874009ce0be539a2 +size 150968 diff --git a/memes_emoji_nsfw/spraypee/images/11.png b/memes_emoji_nsfw/spraypee/images/11.png new file mode 100644 index 0000000000000000000000000000000000000000..033d4a5b1ed054c6e45d7df3ae68eba5167751ab --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f954b543708bea8227dfce894cf5d7ae080346cd718f19905cb6fa3f5f22e5d +size 150196 diff --git a/memes_emoji_nsfw/spraypee/images/12.png b/memes_emoji_nsfw/spraypee/images/12.png new file mode 100644 index 0000000000000000000000000000000000000000..033d4a5b1ed054c6e45d7df3ae68eba5167751ab --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f954b543708bea8227dfce894cf5d7ae080346cd718f19905cb6fa3f5f22e5d +size 150196 diff --git a/memes_emoji_nsfw/spraypee/images/13.png b/memes_emoji_nsfw/spraypee/images/13.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f698549462036de2264cf580b2fd4690a3f513 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/13.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dd8980555739c198639743d8d91d4454dc57be30c9a5e14327aed719e096013 +size 151140 diff --git a/memes_emoji_nsfw/spraypee/images/14.png b/memes_emoji_nsfw/spraypee/images/14.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f698549462036de2264cf580b2fd4690a3f513 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/14.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dd8980555739c198639743d8d91d4454dc57be30c9a5e14327aed719e096013 +size 151140 diff --git a/memes_emoji_nsfw/spraypee/images/15.png b/memes_emoji_nsfw/spraypee/images/15.png new file mode 100644 index 0000000000000000000000000000000000000000..fbbefffb36742c61598ad01f3b37f036f412a77b --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/15.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95c068de30e3f5111d58b278eaac7af403b702cb4b77f528601e8efbf63067e3 +size 153737 diff --git a/memes_emoji_nsfw/spraypee/images/16.png b/memes_emoji_nsfw/spraypee/images/16.png new file mode 100644 index 0000000000000000000000000000000000000000..fbbefffb36742c61598ad01f3b37f036f412a77b --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/16.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95c068de30e3f5111d58b278eaac7af403b702cb4b77f528601e8efbf63067e3 +size 153737 diff --git a/memes_emoji_nsfw/spraypee/images/17.png b/memes_emoji_nsfw/spraypee/images/17.png new file mode 100644 index 0000000000000000000000000000000000000000..7850cf2b206759dc48b2ac1957aebc7425238e7a --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/17.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8c0026a0d1814021d4bbb327a1d7c766419a511f363ef11f7b80cb50e01fad8 +size 151771 diff --git a/memes_emoji_nsfw/spraypee/images/18.png b/memes_emoji_nsfw/spraypee/images/18.png new file mode 100644 index 0000000000000000000000000000000000000000..7850cf2b206759dc48b2ac1957aebc7425238e7a --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/18.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8c0026a0d1814021d4bbb327a1d7c766419a511f363ef11f7b80cb50e01fad8 +size 151771 diff --git a/memes_emoji_nsfw/spraypee/images/19.png b/memes_emoji_nsfw/spraypee/images/19.png new file mode 100644 index 0000000000000000000000000000000000000000..58009c8d5cd762ca4c63b243bb2909653861bad3 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/19.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5206c652894e355a7338533d9460d69c5af3b74ff88b004cea48c9f76767280e +size 150743 diff --git a/memes_emoji_nsfw/spraypee/images/2.png b/memes_emoji_nsfw/spraypee/images/2.png new file mode 100644 index 0000000000000000000000000000000000000000..475fb07d95f1134d99021c1ee46d859f9a0699f4 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7097a0e263b8b66ec0eb4b9ef107647c0bc3ad9c85bc6889d7c9ce002ce6f03 +size 152546 diff --git a/memes_emoji_nsfw/spraypee/images/20.png b/memes_emoji_nsfw/spraypee/images/20.png new file mode 100644 index 0000000000000000000000000000000000000000..58009c8d5cd762ca4c63b243bb2909653861bad3 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/20.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5206c652894e355a7338533d9460d69c5af3b74ff88b004cea48c9f76767280e +size 150743 diff --git a/memes_emoji_nsfw/spraypee/images/21.png b/memes_emoji_nsfw/spraypee/images/21.png new file mode 100644 index 0000000000000000000000000000000000000000..0a527bfb17ddb00e3546acd3966d08d03eef1c44 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/21.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dedfc8081d714f25abb3998d6dff8722e4258f7123dc1d073dd2368c14188de2 +size 150150 diff --git a/memes_emoji_nsfw/spraypee/images/22.png b/memes_emoji_nsfw/spraypee/images/22.png new file mode 100644 index 0000000000000000000000000000000000000000..0a527bfb17ddb00e3546acd3966d08d03eef1c44 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/22.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dedfc8081d714f25abb3998d6dff8722e4258f7123dc1d073dd2368c14188de2 +size 150150 diff --git a/memes_emoji_nsfw/spraypee/images/23.png b/memes_emoji_nsfw/spraypee/images/23.png new file mode 100644 index 0000000000000000000000000000000000000000..338a1ab185c1e99e1a5cf40fae8570128b0fe561 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/23.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f71d9cc9a1aba91cf5851df8a0313254e37fddeda646b12869b630d20dd0bc8 +size 155071 diff --git a/memes_emoji_nsfw/spraypee/images/24.png b/memes_emoji_nsfw/spraypee/images/24.png new file mode 100644 index 0000000000000000000000000000000000000000..338a1ab185c1e99e1a5cf40fae8570128b0fe561 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/24.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f71d9cc9a1aba91cf5851df8a0313254e37fddeda646b12869b630d20dd0bc8 +size 155071 diff --git a/memes_emoji_nsfw/spraypee/images/25.png b/memes_emoji_nsfw/spraypee/images/25.png new file mode 100644 index 0000000000000000000000000000000000000000..a9155c74ff0110843556cfc39ef28cb85ea975d1 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/25.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7fb94888ba5839bb2fefdc5d55d36eb3d3715a71a3aeee20be0f661cc0fcb19 +size 153244 diff --git a/memes_emoji_nsfw/spraypee/images/26.png b/memes_emoji_nsfw/spraypee/images/26.png new file mode 100644 index 0000000000000000000000000000000000000000..a9155c74ff0110843556cfc39ef28cb85ea975d1 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/26.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7fb94888ba5839bb2fefdc5d55d36eb3d3715a71a3aeee20be0f661cc0fcb19 +size 153244 diff --git a/memes_emoji_nsfw/spraypee/images/27.png b/memes_emoji_nsfw/spraypee/images/27.png new file mode 100644 index 0000000000000000000000000000000000000000..741b2f63d90613056725dc0b900e3d480b01f550 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/27.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ff8c0e657c01a55139d5542095982c5adb090122d4ccd53b156bf76583c8f77 +size 156290 diff --git a/memes_emoji_nsfw/spraypee/images/28.png b/memes_emoji_nsfw/spraypee/images/28.png new file mode 100644 index 0000000000000000000000000000000000000000..741b2f63d90613056725dc0b900e3d480b01f550 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/28.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ff8c0e657c01a55139d5542095982c5adb090122d4ccd53b156bf76583c8f77 +size 156290 diff --git a/memes_emoji_nsfw/spraypee/images/29.png b/memes_emoji_nsfw/spraypee/images/29.png new file mode 100644 index 0000000000000000000000000000000000000000..3027affea2083e09b5036d81c6860825b6927bc5 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/29.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9482ac028a004f44a13e746eb4062efa01aac6cd66632f6a19aab75f3471d9ca +size 172090 diff --git a/memes_emoji_nsfw/spraypee/images/3.png b/memes_emoji_nsfw/spraypee/images/3.png new file mode 100644 index 0000000000000000000000000000000000000000..5bb47d3c22951fecf1e8598109fcf154b03dfbff --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49e6bb1c353ea655bd0387a1fe7062cf2845a2afd4ecd7662ae3767b727eacff +size 154069 diff --git a/memes_emoji_nsfw/spraypee/images/30.png b/memes_emoji_nsfw/spraypee/images/30.png new file mode 100644 index 0000000000000000000000000000000000000000..3027affea2083e09b5036d81c6860825b6927bc5 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/30.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9482ac028a004f44a13e746eb4062efa01aac6cd66632f6a19aab75f3471d9ca +size 172090 diff --git a/memes_emoji_nsfw/spraypee/images/4.png b/memes_emoji_nsfw/spraypee/images/4.png new file mode 100644 index 0000000000000000000000000000000000000000..5bb47d3c22951fecf1e8598109fcf154b03dfbff --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49e6bb1c353ea655bd0387a1fe7062cf2845a2afd4ecd7662ae3767b727eacff +size 154069 diff --git a/memes_emoji_nsfw/spraypee/images/5.png b/memes_emoji_nsfw/spraypee/images/5.png new file mode 100644 index 0000000000000000000000000000000000000000..e29803e336c0378e995f6190d2675e9f0f99c615 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ec40662863e8087645865cbbe6d300cad0029e93c9c78dfd572d7f63fb15612 +size 150997 diff --git a/memes_emoji_nsfw/spraypee/images/6.png b/memes_emoji_nsfw/spraypee/images/6.png new file mode 100644 index 0000000000000000000000000000000000000000..e29803e336c0378e995f6190d2675e9f0f99c615 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ec40662863e8087645865cbbe6d300cad0029e93c9c78dfd572d7f63fb15612 +size 150997 diff --git a/memes_emoji_nsfw/spraypee/images/7.png b/memes_emoji_nsfw/spraypee/images/7.png new file mode 100644 index 0000000000000000000000000000000000000000..cc61f9b768e6cbbaca8a0a4c0be464b3d26e9245 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a33fc6513c8ed7a846035b67492a59d2b49b7a999fce814446e1e0b7ceb3638e +size 152583 diff --git a/memes_emoji_nsfw/spraypee/images/8.png b/memes_emoji_nsfw/spraypee/images/8.png new file mode 100644 index 0000000000000000000000000000000000000000..cc61f9b768e6cbbaca8a0a4c0be464b3d26e9245 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a33fc6513c8ed7a846035b67492a59d2b49b7a999fce814446e1e0b7ceb3638e +size 152583 diff --git a/memes_emoji_nsfw/spraypee/images/9.png b/memes_emoji_nsfw/spraypee/images/9.png new file mode 100644 index 0000000000000000000000000000000000000000..8eb7a99fc44c010263369af90e5635e17553ec67 --- /dev/null +++ b/memes_emoji_nsfw/spraypee/images/9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e68aab34327f91e8abaa93d4a180b8eb97ddaecb328d4b874009ce0be539a2 +size 150968 diff --git a/memes_jj/486/__init__.py b/memes_jj/486/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..5a7fb97486e795f82e812a9343bd7be13617353a --- /dev/null +++ b/memes_jj/486/__init__.py @@ -0,0 +1,81 @@ +from datetime import datetime +from pathlib import Path + +from PIL.Image import Image as IMG +from pil_utils import BuildImage, Text2Image +from io import BytesIO +from meme_generator.exception import TextOverLength +from meme_generator.utils import save_gif +from meme_generator import add_meme + +img_dir = Path(__file__).parent / "images" + + +def sibalu(images: list[BuildImage], texts: list[str], args): + try: + img = images[0].convert("RGBA").resize((42, 93)) # 获取用户头像 + + # 帧位置定义(从0到23帧的坐标) + head_locs = [ + (-8, 118), (-8, 118), (-8, 118), (-8, 118), (-8, 118), (-8, 118), + (-8, 118), (-8, 118), (-8, 118), (-8, 118), (-8, 118), (-5, 115), + (-5, 112), (10, 112), (78, 108), (94, 107), (94, 107), (94, 107), + (94, 107), (95, 109), (95, 109), (95, 109), (95, 109) + ] + rotate_num = [ + 7,7,7,7,7,7,7,7,7,7,7,7,7,-6,-6, 4, 4, 4, 4, 4, 4, 4, 4, + ] + + # 处理文本 + if not texts: + raise ValueError("No text provided") + text = f"{texts[0]}" + text2image = Text2Image.from_text( + text, 20,fill=(0, 0, 0), stroke_width=3, stroke_fill="white", + font_families=["033-SSFangTangTi"] + ).wrap(200) + if text2image.height > 30: + raise TextOverLength(text) + text_img = text2image.to_image() + + # 创建动态帧 + frames = [] + background = BuildImage.open(img_dir / "0.png") # 打开背景图 + for i in range(31): + frame = BuildImage.new("RGBA", (background.width, background.height)) + + png_img = BuildImage.open(img_dir / f"{i}.png") + # 0-22帧粘贴头像 + if i <= 22: + # 旋转头像 + rotated_img = img.rotate(rotate_num[i], expand=True) + # 粘贴旋转后的头像 + frame.paste(rotated_img, head_locs[i], alpha=True) + + frame.paste(png_img, (0, 0), alpha=True) # 添加位置坐标 + if i <= 22: + # 粘贴文本 - 居中对齐 + text_w, _ = text_img.size + x = (frame.width - text_w) // 2 # 居中对齐的x坐标 + frame.paste(text_img, (x, 182), alpha=True) + frames.append(frame.image) + + # 返回 GIF 动画 + return save_gif(frames, 0.08) + except Exception as e: + # 在实际应用中,可能需要记录错误或重新抛出 + raise e + + +add_meme( + "sibalu", + sibalu, + min_images=1, + max_images=1, + min_texts=1, + max_texts=1, + default_texts=["给你看个傻子"], + keywords=["486"], + date_created=datetime(2025, 7, 9), + date_modified=datetime(2025, 7, 9), +) \ No newline at end of file diff --git a/memes_jj/486/images/0.png b/memes_jj/486/images/0.png new file mode 100644 index 0000000000000000000000000000000000000000..0d94428c7992966537b1f486de2cb14f09502125 Binary files /dev/null and b/memes_jj/486/images/0.png differ diff --git a/memes_jj/486/images/1.png b/memes_jj/486/images/1.png new file mode 100644 index 0000000000000000000000000000000000000000..7d12ed2cd9f20f6e2aeb33d1ab04c8044f34799a Binary files /dev/null and b/memes_jj/486/images/1.png differ diff --git a/memes_jj/486/images/10.png b/memes_jj/486/images/10.png new file mode 100644 index 0000000000000000000000000000000000000000..4df008126608a5c50c1173ee56047e1c029f00a7 Binary files /dev/null and b/memes_jj/486/images/10.png differ diff --git a/memes_jj/486/images/11.png b/memes_jj/486/images/11.png new file mode 100644 index 0000000000000000000000000000000000000000..28815492cbb0c8d3cf70cf8da5a582225f03c0ae Binary files /dev/null and b/memes_jj/486/images/11.png differ diff --git a/memes_jj/486/images/12.png b/memes_jj/486/images/12.png new file mode 100644 index 0000000000000000000000000000000000000000..8f18b6b533a13bea333464a3583819d03735a040 Binary files /dev/null and b/memes_jj/486/images/12.png differ diff --git a/memes_jj/486/images/13.png b/memes_jj/486/images/13.png new file mode 100644 index 0000000000000000000000000000000000000000..09bcb5cdbd998ac35e7c023047de2644677f77ee Binary files /dev/null and b/memes_jj/486/images/13.png differ diff --git a/memes_jj/486/images/14.png b/memes_jj/486/images/14.png new file mode 100644 index 0000000000000000000000000000000000000000..c8735702a580c9502fa9bd4c1d0c251270964ed7 Binary files /dev/null and b/memes_jj/486/images/14.png differ diff --git a/memes_jj/486/images/15.png b/memes_jj/486/images/15.png new file mode 100644 index 0000000000000000000000000000000000000000..167112bcd7fd68c6e3c2de9d4b58519638f4d209 Binary files /dev/null and b/memes_jj/486/images/15.png differ diff --git a/memes_jj/486/images/16.png b/memes_jj/486/images/16.png new file mode 100644 index 0000000000000000000000000000000000000000..43f0e07d5d3d4a66c8a13f0c0f3975e22205ce39 Binary files /dev/null and b/memes_jj/486/images/16.png differ diff --git a/memes_jj/486/images/17.png b/memes_jj/486/images/17.png new file mode 100644 index 0000000000000000000000000000000000000000..fa5b3eb8631ef56917743e57197b28915ef94670 Binary files /dev/null and b/memes_jj/486/images/17.png differ diff --git a/memes_jj/486/images/18.png b/memes_jj/486/images/18.png new file mode 100644 index 0000000000000000000000000000000000000000..916d09913a9993235341131286d632c0aef32e47 Binary files /dev/null and b/memes_jj/486/images/18.png differ diff --git a/memes_jj/486/images/19.png b/memes_jj/486/images/19.png new file mode 100644 index 0000000000000000000000000000000000000000..7fbdea934ce8ba1ec41f1fb076418be83b1fc5b0 Binary files /dev/null and b/memes_jj/486/images/19.png differ diff --git a/memes_jj/486/images/2.png b/memes_jj/486/images/2.png new file mode 100644 index 0000000000000000000000000000000000000000..2e28139fe32c082d6ef7f014757b3e81841ae813 Binary files /dev/null and b/memes_jj/486/images/2.png differ diff --git a/memes_jj/486/images/20.png b/memes_jj/486/images/20.png new file mode 100644 index 0000000000000000000000000000000000000000..84ae659ac88121f79feb6848a7978276471089d2 Binary files /dev/null and b/memes_jj/486/images/20.png differ diff --git a/memes_jj/486/images/21.png b/memes_jj/486/images/21.png new file mode 100644 index 0000000000000000000000000000000000000000..fe9adc519369d9493015759042f7040ed0885a5a Binary files /dev/null and b/memes_jj/486/images/21.png differ diff --git a/memes_jj/486/images/22.png b/memes_jj/486/images/22.png new file mode 100644 index 0000000000000000000000000000000000000000..f520ffc4a0e33c9bfacb48f49787dd0bdf50814f Binary files /dev/null and b/memes_jj/486/images/22.png differ diff --git a/memes_jj/486/images/23.png b/memes_jj/486/images/23.png new file mode 100644 index 0000000000000000000000000000000000000000..c4e2a9f955162649071a17f83b7509c9c381fabc Binary files /dev/null and b/memes_jj/486/images/23.png differ diff --git a/memes_jj/486/images/24.png b/memes_jj/486/images/24.png new file mode 100644 index 0000000000000000000000000000000000000000..a3c5347cba5236a001319877011fdf8fcfdfece5 Binary files /dev/null and b/memes_jj/486/images/24.png differ diff --git a/memes_jj/486/images/25.png b/memes_jj/486/images/25.png new file mode 100644 index 0000000000000000000000000000000000000000..c456038f5b382aef0ee73b4ea33eb3fe2386db33 Binary files /dev/null and b/memes_jj/486/images/25.png differ diff --git a/memes_jj/486/images/26.png b/memes_jj/486/images/26.png new file mode 100644 index 0000000000000000000000000000000000000000..1322cc87e2b278a2914e70cd5172f30761a4a1d6 Binary files /dev/null and b/memes_jj/486/images/26.png differ diff --git a/memes_jj/486/images/27.png b/memes_jj/486/images/27.png new file mode 100644 index 0000000000000000000000000000000000000000..72065eafe9f7afc90c83d331c041e640d32feb24 Binary files /dev/null and b/memes_jj/486/images/27.png differ diff --git a/memes_jj/486/images/28.png b/memes_jj/486/images/28.png new file mode 100644 index 0000000000000000000000000000000000000000..134bc3bf740fb7aedadc7c5ed6431cac9fabf177 Binary files /dev/null and b/memes_jj/486/images/28.png differ diff --git a/memes_jj/486/images/29.png b/memes_jj/486/images/29.png new file mode 100644 index 0000000000000000000000000000000000000000..55c85f3d45499d65af25e2a5755c98c2f22b573c Binary files /dev/null and b/memes_jj/486/images/29.png differ diff --git a/memes_jj/486/images/3.png b/memes_jj/486/images/3.png new file mode 100644 index 0000000000000000000000000000000000000000..94deab9ec0dd42924cb92fbe6dbdbb2f1067663e Binary files /dev/null and b/memes_jj/486/images/3.png differ diff --git a/memes_jj/486/images/30.png b/memes_jj/486/images/30.png new file mode 100644 index 0000000000000000000000000000000000000000..9869f4cee77b79c3a9753b8e577004d558e2bb8a Binary files /dev/null and b/memes_jj/486/images/30.png differ diff --git a/memes_jj/486/images/4.png b/memes_jj/486/images/4.png new file mode 100644 index 0000000000000000000000000000000000000000..8ebaed4fa828fdd458b22bcd09c987f57a2d7daa Binary files /dev/null and b/memes_jj/486/images/4.png differ diff --git a/memes_jj/486/images/5.png b/memes_jj/486/images/5.png new file mode 100644 index 0000000000000000000000000000000000000000..75f304ef667e68364de07431282b50a499d65f37 Binary files /dev/null and b/memes_jj/486/images/5.png differ diff --git a/memes_jj/486/images/6.png b/memes_jj/486/images/6.png new file mode 100644 index 0000000000000000000000000000000000000000..9f4fc40b19b875a15970d2d3b600e44e9e95cbf0 Binary files /dev/null and b/memes_jj/486/images/6.png differ diff --git a/memes_jj/486/images/7.png b/memes_jj/486/images/7.png new file mode 100644 index 0000000000000000000000000000000000000000..ef821b2cd0423e9a101e990b5a38a9123c6544f5 Binary files /dev/null and b/memes_jj/486/images/7.png differ diff --git a/memes_jj/486/images/8.png b/memes_jj/486/images/8.png new file mode 100644 index 0000000000000000000000000000000000000000..14995ffb7f26b2fa5d6c266a8136d0fd92ce8f1d Binary files /dev/null and b/memes_jj/486/images/8.png differ diff --git a/memes_jj/486/images/9.png b/memes_jj/486/images/9.png new file mode 100644 index 0000000000000000000000000000000000000000..064dacaf72dfa1669d8a5f9fb70eb927710f84c0 Binary files /dev/null and b/memes_jj/486/images/9.png differ diff --git a/memes_jj/README.md b/memes_jj/README.md new file mode 100644 index 0000000000000000000000000000000000000000..04b0c21f48aed7f67d18db97bbea68d2abecebd4 --- /dev/null +++ b/memes_jj/README.md @@ -0,0 +1 @@ +## 此目录此目录由ci定时同步[meme-generator-jj](https://github.com/jinjiao007/meme-generator-jj)内容 \ No newline at end of file diff --git a/memes_jj/andwho/__init__.py b/memes_jj/andwho/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..823014d13fd45dcc7966abacabe4545ccd755083 --- /dev/null +++ b/memes_jj/andwho/__init__.py @@ -0,0 +1,68 @@ +from datetime import datetime +from pathlib import Path + +from pil_utils import BuildImage, Text2Image +from meme_generator import add_meme +from meme_generator.exception import TextOverLength +from meme_generator.utils import make_png_or_gif + +img_dir = Path(__file__).parent / "images" + +default_text = "原神" + +def andwho(images: list[BuildImage], texts: list[str], args): + text = texts[0] if texts else default_text + + # 动态字号:72 ~ 24 + max_size = 72 + min_size = 24 + size = max_size + + while size >= min_size: + text2image = Text2Image.from_text( + text, + size, + fill=(0, 0, 0), + stroke_width=1, + stroke_fill="black", + font_families=["GlowSansSC-Normal-Heavy"], + ).wrap(253) + + if text2image.height <= 170: + break + size -= 2 # 每次降 2 号,也可以改成 1 号更细腻 + else: + # 字号已经降到 24 仍然溢出 + raise TextOverLength(text) + + text_img = text2image.to_image() + + background = BuildImage.open(img_dir / "0.png") + + def make(imgs: list[BuildImage]) -> BuildImage: + img = imgs[0].convert("RGBA").square().resize((300, 300)) + frame = BuildImage.new("RGBA", background.size, (0, 0, 0, 0)) + frame.paste(img, (430, 272), alpha=True) + frame.paste(background, (0, 0), alpha=True) + + # 计算居中坐标 + x = 0 + (252 - text_img.width) // 2 # 水平居中 + y = 444 + (171 - text_img.height) // 2 # 垂直居中 + frame.paste(text_img, (x, y), alpha=True) + return frame + + return make_png_or_gif(images, make) + + +add_meme( + "andwho", + andwho, + min_images=1, + max_images=1, + min_texts=0, + max_texts=1, + default_texts=[default_text], + keywords=["今天和谁过"], + date_created=datetime(2025, 8, 29), + date_modified=datetime(2025, 8, 29), +) \ No newline at end of file diff --git a/memes_jj/andwho/images/0.png b/memes_jj/andwho/images/0.png new file mode 100644 index 0000000000000000000000000000000000000000..44c947f62c2bf10b94d3be7467a43b094e129183 Binary files /dev/null and b/memes_jj/andwho/images/0.png differ diff --git a/memes_jj/buyaolian/__init__.py b/memes_jj/buyaolian/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..c4206445029491129428122ac47da99dca94738b --- /dev/null +++ b/memes_jj/buyaolian/__init__.py @@ -0,0 +1,69 @@ +from datetime import datetime +from pathlib import Path + +from PIL.Image import Image as IMG +from pil_utils import BuildImage, Text2Image + +from meme_generator import add_meme +from meme_generator.utils import save_gif +from meme_generator.exception import TextOverLength + +img_dir = Path(__file__).parent / "images" + +default_text = "我就是不要脸\n 你来撕我啊" + +def buyaolian(images: list[BuildImage], texts: list[str], args): + img = images[0].convert("RGBA").square() # 将用户头像转换为方形 + + text = texts[0] if texts else default_text + text2image = Text2Image.from_text( + text, 35, fill=(0, 0, 0), stroke_width=3, stroke_fill="white", + font_families=["033-SSFangTangTi"] + ).wrap(400) + if text2image.height > 85: + raise TextOverLength(text) + text_img = text2image.to_image() + + # 每帧中头像的位置和大小 + one_locs = [ + (130, 179, 93, 80), (130, 179, 93, 80), (137, 202, 94, 96), (152, 248, 95, 100), + (188, 313, 69, 74) + ] + tow_locs = [ + (137, 85, 90, 82), (139, 111, 93, 80), (138, 172, 90, 91), (138, 172, 90, 91), + ] + frames: list[IMG] = [] + for i in range(6): + bg = BuildImage.open(img_dir / f"{i}.png") # 打开背景图 + frame = BuildImage.new("RGBA", bg.size, "white") # 创建新帧 + + # 获取 current_loc 的位置和大小 + if i < len(one_locs): + x1, y1, w1, h1 = one_locs[i] + frame.paste(img.resize((w1, h1)), (x1, y1), alpha=True) + # 获取tow_loc的位置和大小 + if 1 <= i <=4: + x2, y2, w2, h2 = tow_locs[i-1] # 获取tow_locs对应位置的坐标 + frame.paste(img.resize((w2, h2)), (x2, y2), alpha=True) + # 粘贴背景图 + frame.paste(bg, alpha=True) + text_w, _ = text_img.size + x = (frame.width - text_w) // 2 # 居中对齐的x坐标 + frame.paste(text_img, (x, 18), alpha=True) + frames.append(frame.image) # 添加当前帧到帧列表 + + return save_gif(frames, 0.1) # 保存为GIF,帧间隔0.08秒 + + +add_meme( + "buyaolian", + buyaolian, + min_images=1, + max_images=1, + min_texts=1, + max_texts=1, + default_texts=[default_text], + keywords=["不要脸", "撕脸"], + date_created=datetime(2025, 5, 24), + date_modified=datetime(2025, 5, 24), +) \ No newline at end of file diff --git a/memes_jj/buyaolian/images/0.png b/memes_jj/buyaolian/images/0.png new file mode 100644 index 0000000000000000000000000000000000000000..de258302e7f55eac5735f7eec917e2bdbce6f76b Binary files /dev/null and b/memes_jj/buyaolian/images/0.png differ diff --git a/memes_jj/buyaolian/images/1.png b/memes_jj/buyaolian/images/1.png new file mode 100644 index 0000000000000000000000000000000000000000..b7024f242fdc76408faaffa8f28dc9198b3a7e64 Binary files /dev/null and b/memes_jj/buyaolian/images/1.png differ diff --git a/memes_jj/buyaolian/images/2.png b/memes_jj/buyaolian/images/2.png new file mode 100644 index 0000000000000000000000000000000000000000..5535c08a5d4b3a1f00e3faa0415c9f92f658159b Binary files /dev/null and b/memes_jj/buyaolian/images/2.png differ diff --git a/memes_jj/buyaolian/images/3.png b/memes_jj/buyaolian/images/3.png new file mode 100644 index 0000000000000000000000000000000000000000..43642246411452b7c00998a93d2ec5063b130ea0 Binary files /dev/null and b/memes_jj/buyaolian/images/3.png differ diff --git a/memes_jj/buyaolian/images/4.png b/memes_jj/buyaolian/images/4.png new file mode 100644 index 0000000000000000000000000000000000000000..23f36ef857dd86a0815f3357827d3d85d09105b6 Binary files /dev/null and b/memes_jj/buyaolian/images/4.png differ diff --git a/memes_jj/buyaolian/images/5.png b/memes_jj/buyaolian/images/5.png new file mode 100644 index 0000000000000000000000000000000000000000..464538b404c3cf8667f32bce0481abd10131fc69 Binary files /dev/null and b/memes_jj/buyaolian/images/5.png differ diff --git a/memes_jj/caosini/__init__.py b/memes_jj/caosini/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..d7693f9b0df60d6a8759e70231275d52e1383a9b --- /dev/null +++ b/memes_jj/caosini/__init__.py @@ -0,0 +1,77 @@ +from datetime import datetime +from pathlib import Path + +from PIL.Image import Image as IMG +from pil_utils import BuildImage, Text2Image +from io import BytesIO +from meme_generator.exception import TextOverLength +from meme_generator import add_meme, MemeArgsType, ParserArg, ParserOption + +img_dir = Path(__file__).parent / "images" + + +def caosini(images: list[BuildImage], texts, args): + try: + if not images: + raise ValueError("No images provided") + img = images[0].convert("RGBA").resize((85, 90)) # 获取用户头像 + + # 帧位置定义 + head_locs = [ + (68, 169), (68, 172), (151, 191), (164, 146), (178, 131), (98, 222), + (98, 224), (83, 145), (83, 145) + ] + + # 获取 0.png 的图像大小 + background_img = BuildImage.open(img_dir / "0.png") + width, height = background_img.width, background_img.height + + # 创建动态帧 + frames = [] + for i in range(9): + # 生成透明背景图 + frame = BuildImage.new("RGBA", (width, height)) + # 粘贴用户头像到指定坐标位置 + frame.paste(img, head_locs[i], alpha=True) + # 粘贴 0-21.png + png_img = BuildImage.open(img_dir / f"{i}.png") + frame.paste(png_img, alpha=True) + frames.append(frame.image) + + # 返回 GIF 动画 + return save_gif(frames, 0.05) + + except Exception as e: + print(f"Error generating meme: {e}") + return BytesIO() + + +def save_gif(frames: list[IMG], duration: float) -> BytesIO: + """将帧列表保存为GIF动画""" + if not frames: + return BytesIO() + + buffer = BytesIO() + # 为所有帧设置相同的时长 + frames[0].save( + buffer, + format="GIF", + save_all=True, + append_images=frames[1:], + duration=int(duration * 1000), + loop=0, + disposal=2 + ) + buffer.seek(0) + return buffer + + +add_meme( + "caosini", + caosini, + min_images=1, + max_images=1, + keywords=["炒你"], + date_created=datetime(2025, 5, 20), + date_modified=datetime(2025, 5, 20), +) \ No newline at end of file diff --git a/memes_jj/caosini/images/0.png b/memes_jj/caosini/images/0.png new file mode 100644 index 0000000000000000000000000000000000000000..76414e55bfad34a98307c85fc20a84adfa167bb2 Binary files /dev/null and b/memes_jj/caosini/images/0.png differ diff --git a/memes_jj/caosini/images/1.png b/memes_jj/caosini/images/1.png new file mode 100644 index 0000000000000000000000000000000000000000..03c850cfa96f2a4337ca30c654871a789a93fc2e Binary files /dev/null and b/memes_jj/caosini/images/1.png differ diff --git a/memes_jj/caosini/images/2.png b/memes_jj/caosini/images/2.png new file mode 100644 index 0000000000000000000000000000000000000000..f43c98532ebd928b73e7930a0679e2300e28abb5 Binary files /dev/null and b/memes_jj/caosini/images/2.png differ diff --git a/memes_jj/caosini/images/3.png b/memes_jj/caosini/images/3.png new file mode 100644 index 0000000000000000000000000000000000000000..8ba55fcf6a9b7e7d994a27cea44bfbc126a5f7ad Binary files /dev/null and b/memes_jj/caosini/images/3.png differ diff --git a/memes_jj/caosini/images/4.png b/memes_jj/caosini/images/4.png new file mode 100644 index 0000000000000000000000000000000000000000..a99763999380519aa5e36dd4413022eff342ce00 Binary files /dev/null and b/memes_jj/caosini/images/4.png differ diff --git a/memes_jj/caosini/images/5.png b/memes_jj/caosini/images/5.png new file mode 100644 index 0000000000000000000000000000000000000000..0a0f00f602ad3f6e51f3cc0ccda0813d6fe0aa05 Binary files /dev/null and b/memes_jj/caosini/images/5.png differ