safcz 发布于4 小时前 发布于4 小时前 · 只看该作者 30 分钟前,tetrohedro说道: 这作者对NTR的领悟可以作为牛头人学的论文。 作为新人,我现在只想快速穿越,早日看到全文。 没想到同盟还有如此高手。 同盟可是卧虎藏龙的呦 穿越需要多聊天呢,你也是牛头人吗
tetrohedro 发布于4 小时前 发布于4 小时前 · 只看该作者 1 分钟前,safcz说道: 同盟可是卧虎藏龙的呦 穿越需要多聊天呢,你也是牛头人吗 前辈你好~! 我是杂食主义者,不过我的朋友是牛头人考古学家。 我的朋友和我说同盟是很多游戏开发者的梦的起点,包括开发除灵和妹神官的BBQ大好,诅咒铠甲的wolfzq都曾是同盟用户。 如果牛头人部落允许双重国籍的话,那我也希望能加入牛头人部落!
safcz 发布于3 小时前 发布于3 小时前 · 只看该作者 43 分钟前,tetrohedro说道: 前辈你好~! 我是杂食主义者,不过我的朋友是牛头人考古学家。 我的朋友和我说同盟是很多游戏开发者的梦的起点,包括开发除灵和妹神官的BBQ大好,诅咒铠甲的wolfzq都曾是同盟用户。 如果牛头人部落允许双重国籍的话,那我也希望能加入牛头人部落! 那最近有玩什么觉得不错的黄油吗
tetrohedro 发布于3 小时前 发布于3 小时前 · 只看该作者 刚刚,safcz说道: 那最近有玩什么觉得不错的黄油吗 我强烈推荐....... 外道勇者一行!~! 剧情轻松,牛度适中,和来自深渊一样,都是需要放松时可以轻松享受的作品。 (无辜的双眼)
safcz 发布于3 小时前 发布于3 小时前 · 只看该作者 1 分钟前,tetrohedro说道: 我强烈推荐....... 外道勇者一行!~! 剧情轻松,牛度适中,和来自深渊一样,都是需要放松时可以轻松享受的作品。 (无辜的双眼) 大名鼎鼎的外道勇者但凡是了解NTR一点的谁人不知谁人不晓,你这话术已经骗不到人了 虽然我是不会玩这种纯牛头人游戏,但是这个社团的游戏质量都很好,特别是剧情设定都是十分有特色
tetrohedro 发布于3 小时前 发布于3 小时前 · 只看该作者 13 分钟前,safcz说道: 大名鼎鼎的外道勇者但凡是了解NTR一点的谁人不知谁人不晓,你这话术已经骗不到人了 虽然我是不会玩这种纯牛头人游戏,但是这个社团的游戏质量都很好,特别是剧情设定都是十分有特色 是吗,已经骗不到人了嘛 U-ROOM的作品的确独出心裁,作者有用心的构思过如何伤害玩家做优秀的作品。 这回我推荐一部真的牛度适中的。 我推荐栗Pick老师制作的《ナナハよ。》,这部作品是10年前的老作品,牛度远远不如现在的新作品。 有着皆大欢喜结局,所有的黄毛都会恶有恶报,遭到制裁。 引用 排版好好玩,用排版可以做出任何效果。
safcz 发布于1 小时前 发布于1 小时前 · 只看该作者 1 小时前,tetrohedro说道: 是吗,已经骗不到人了嘛 U-ROOM的作品的确独出心裁,作者有用心的构思过如何伤害玩家做优秀的作品。 这回我推荐一部真的牛度适中的。 我推荐栗Pick老师制作的《ナナハよ。》,这部作品是10年前的老作品,牛度远远不如现在的新作品。 有着皆大欢喜结局,所有的黄毛都会恶有恶报,遭到制裁。 虽然我的XP偏向混沌,但是对于NTR只能接受可以选择被牛的程度,这个好像必定被牛 你这个图片是用什么作的,挺有趣的
tetrohedro 发布于1 小时前 发布于1 小时前 · 只看该作者 刚刚,safcz说道: 虽然我的XP偏向混沌,但是对于NTR只能接受可以选择被牛的程度,这个好像必定被牛 你这个图片是用什么作的,挺有趣的 诈骗失败 X2 前面一直在研究前辈和其他人的排版,然后就和Claude一起手搓了一个自动根据图片排版的Python脚本。 #!/usr/bin/env python3 """Convert an image to an HTML table where each cell represents a pixel.""" from PIL import Image import sys import os def image_to_html_table(image_path, output_path, width=120): """Convert an image to an HTML table. Args: image_path: Path to the input image output_path: Path for the output HTML file width: Target width in cells (height calculated to maintain aspect ratio) """ # Load the image img = Image.open(image_path) # Calculate new height to maintain aspect ratio aspect_ratio = img.height / img.width height = int(width * aspect_ratio) # Resize the image img = img.resize((width, height), Image.Resampling.LANCZOS) # Convert to grayscale img = img.convert('L') # Get pixel data pixels = list(img.getdata()) # Build HTML html = """<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Bad Apple - HTML Table</title> </head> <body> <table style="border-collapse:collapse;table-layout:fixed"> """ # Generate table rows for y in range(height): html += " <tr>" for x in range(width): pixel_value = pixels[y * width + x] # Convert grayscale to hex color hex_color = f"#{pixel_value:02x}{pixel_value:02x}{pixel_value:02x}" html += f'<td style="background-color:{hex_color};width:6px;height:6px;padding:0;line-height:0"></td>' html += "</tr>\n" html += """ </table> </body> </html> """ # Write output with open(output_path, 'w') as f: f.write(html) print(f"Generated HTML table: {output_path}") print(f"Dimensions: {width}x{height} cells") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python image_to_table_v2.py <image_path> [width]") sys.exit(1) image_path = sys.argv[1] # Derive output path from input filename base_name = os.path.splitext(os.path.basename(image_path))[0] output_path = f"{base_name}_table.html" # Optional: accept width from command line width = int(sys.argv[2]) if len(sys.argv) > 2 else 120 image_to_html_table(image_path, output_path, width) 注释 MCIN 66.00节操 脚本大神 safcz 40.00节操
safcz 发布于1 小时前 发布于1 小时前 · 只看该作者 3 分钟前,tetrohedro说道: 诈骗失败 X2 前面一直在研究前辈和其他人的排版,然后就和Claude一起手搓了一个自动根据图片排版的Python脚本。 #!/usr/bin/env python3 """Convert an image to an HTML table where each cell represents a pixel.""" from PIL import Image import sys import os def image_to_html_table(image_path, output_path, width=120): """Convert an image to an HTML table. Args: image_path: Path to the input image output_path: Path for the output HTML file width: Target width in cells (height calculated to maintain aspect ratio) """ # Load the image img = Image.open(image_path) # Calculate new height to maintain aspect ratio aspect_ratio = img.height / img.width height = int(width * aspect_ratio) # Resize the image img = img.resize((width, height), Image.Resampling.LANCZOS) # Convert to grayscale img = img.convert('L') # Get pixel data pixels = list(img.getdata()) # Build HTML html = """<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Bad Apple - HTML Table</title> </head> <body> <table style="border-collapse:collapse;table-layout:fixed"> """ # Generate table rows for y in range(height): html += " <tr>" for x in range(width): pixel_value = pixels[y * width + x] # Convert grayscale to hex color hex_color = f"#{pixel_value:02x}{pixel_value:02x}{pixel_value:02x}" html += f'<td style="background-color:{hex_color};width:6px;height:6px;padding:0;line-height:0"></td>' html += "</tr>\n" html += """ </table> </body> </html> """ # Write output with open(output_path, 'w') as f: f.write(html) print(f"Generated HTML table: {output_path}") print(f"Dimensions: {width}x{height} cells") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python image_to_table_v2.py <image_path> [width]") sys.exit(1) image_path = sys.argv[1] # Derive output path from input filename base_name = os.path.splitext(os.path.basename(image_path))[0] output_path = f"{base_name}_table.html" # Optional: accept width from command line width = int(sys.argv[2]) if len(sys.argv) > 2 else 120 image_to_html_table(image_path, output_path, width) 这是今天刚写的吗
tetrohedro 发布于1 小时前 发布于1 小时前 · 只看该作者 1 分钟前,safcz说道: 这是今天刚写的吗 是的,刚写的! 为了表达我对你的排版技术的憧憬,我抱着热情写下了这个脚本。 不过失败了很多次...... 这个论坛会给表格加很多CSS Style,所以需要调试。
月晓 发布于1 小时前 发布于1 小时前 · 只看该作者 4 小时前,tetrohedro说道: 这作者对NTR的领悟可以作为牛头人学的论文。 作为新人,我现在只想快速穿越,早日看到全文。 没想到同盟还有如此高手。 笑死了那和我多多引用回复吧 月晓在前往新手村的路上遇见了劫道的风神烈破,收取过路费-2节操
tetrohedro 发布于1 小时前 发布于1 小时前 (已修改) · 只看该作者 5 分钟前,月晓说道: 笑死了那和我多多引用回复吧 我要速通穿越!没有障碍能阻挡我。 可惜同盟的每日签到系统不是点击特定按钮签到,而是回复指定帖子签到。 很多论坛的每日签到系统有Bug,只要在极短时间内签到多次,就能绕过每日签到只有一次的限制....... 1 小时前,由tetrohedro修改
safcz 发布于1 小时前 发布于1 小时前 · 只看该作者 10 分钟前,tetrohedro说道: 是的,刚写的! 为了表达我对你的排版技术的憧憬,我抱着热情写下了这个脚本。 不过失败了很多次...... 这个论坛会给表格加很多CSS Style,所以需要调试。 如果完善了可以去综合事务所发部,之前的一些脚本就发在那
tetrohedro 发布于55 分钟前 发布于55 分钟前 · 只看该作者 11 分钟前,safcz说道: 如果完善了可以去综合事务所发部,之前的一些脚本就发在那 我在综合事务所无法发帖 只能等待自由的那一天了
safcz 发布于51 分钟前 发布于51 分钟前 · 只看该作者 1 分钟前,tetrohedro说道: 我在综合事务所无法发帖 只能等待自由的那一天了 去做一下新手任务吧,凭你的实力300节操很容易的 然后等穿越就行了 不过综合事务所只需要升级到新手上路就可以发贴了
月晓 发布于刚刚 发布于刚刚 · 只看该作者 刚刚,tetrohedro说道: 我要速通穿越!没有障碍能阻挡我。 可惜同盟的每日签到系统不是点击特定按钮签到,而是回复指定帖子签到。 很多论坛的每日签到系统有Bug,只要在极短时间内签到多次,就能绕过每日签到只有一次的限制....... 确实是而且还不能补签容易忘
推荐贴
创建帐号或登入才能点评
您必须成为用户才能点评
创建帐号
在我们社区注册个新的帐号。非常简单!
注册新帐号登入
已有帐号? 登入
现在登入