safcz 发布于3 小时前 发布于3 小时前 · 只看该作者 30 分钟前,tetrohedro说道: 这作者对NTR的领悟可以作为牛头人学的论文。 作为新人,我现在只想快速穿越,早日看到全文。 没想到同盟还有如此高手。 同盟可是卧虎藏龙的呦 穿越需要多聊天呢,你也是牛头人吗
tetrohedro 发布于3 小时前 发布于3 小时前 · 只看该作者 1 分钟前,safcz说道: 同盟可是卧虎藏龙的呦 穿越需要多聊天呢,你也是牛头人吗 前辈你好~! 我是杂食主义者,不过我的朋友是牛头人考古学家。 我的朋友和我说同盟是很多游戏开发者的梦的起点,包括开发除灵和妹神官的BBQ大好,诅咒铠甲的wolfzq都曾是同盟用户。 如果牛头人部落允许双重国籍的话,那我也希望能加入牛头人部落!
safcz 发布于2 小时前 发布于2 小时前 · 只看该作者 43 分钟前,tetrohedro说道: 前辈你好~! 我是杂食主义者,不过我的朋友是牛头人考古学家。 我的朋友和我说同盟是很多游戏开发者的梦的起点,包括开发除灵和妹神官的BBQ大好,诅咒铠甲的wolfzq都曾是同盟用户。 如果牛头人部落允许双重国籍的话,那我也希望能加入牛头人部落! 那最近有玩什么觉得不错的黄油吗
tetrohedro 发布于2 小时前 发布于2 小时前 · 只看该作者 刚刚,safcz说道: 那最近有玩什么觉得不错的黄油吗 我强烈推荐....... 外道勇者一行!~! 剧情轻松,牛度适中,和来自深渊一样,都是需要放松时可以轻松享受的作品。 (无辜的双眼)
safcz 发布于2 小时前 发布于2 小时前 · 只看该作者 1 分钟前,tetrohedro说道: 我强烈推荐....... 外道勇者一行!~! 剧情轻松,牛度适中,和来自深渊一样,都是需要放松时可以轻松享受的作品。 (无辜的双眼) 大名鼎鼎的外道勇者但凡是了解NTR一点的谁人不知谁人不晓,你这话术已经骗不到人了 虽然我是不会玩这种纯牛头人游戏,但是这个社团的游戏质量都很好,特别是剧情设定都是十分有特色
tetrohedro 发布于1 小时前 发布于1 小时前 · 只看该作者 13 分钟前,safcz说道: 大名鼎鼎的外道勇者但凡是了解NTR一点的谁人不知谁人不晓,你这话术已经骗不到人了 虽然我是不会玩这种纯牛头人游戏,但是这个社团的游戏质量都很好,特别是剧情设定都是十分有特色 是吗,已经骗不到人了嘛 U-ROOM的作品的确独出心裁,作者有用心的构思过如何伤害玩家做优秀的作品。 这回我推荐一部真的牛度适中的。 我推荐栗Pick老师制作的《ナナハよ。》,这部作品是10年前的老作品,牛度远远不如现在的新作品。 有着皆大欢喜结局,所有的黄毛都会恶有恶报,遭到制裁。 引用 排版好好玩,用排版可以做出任何效果。
safcz 发布于29 分钟前 发布于29 分钟前 · 只看该作者 1 小时前,tetrohedro说道: 是吗,已经骗不到人了嘛 U-ROOM的作品的确独出心裁,作者有用心的构思过如何伤害玩家做优秀的作品。 这回我推荐一部真的牛度适中的。 我推荐栗Pick老师制作的《ナナハよ。》,这部作品是10年前的老作品,牛度远远不如现在的新作品。 有着皆大欢喜结局,所有的黄毛都会恶有恶报,遭到制裁。 虽然我的XP偏向混沌,但是对于NTR只能接受可以选择被牛的程度,这个好像必定被牛 你这个图片是用什么作的,挺有趣的
tetrohedro 发布于22 分钟前 发布于22 分钟前 · 只看该作者 刚刚,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) 注释 safcz 40.00节操
safcz 发布于18 分钟前 发布于18 分钟前 · 只看该作者 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 发布于12 分钟前 发布于12 分钟前 · 只看该作者 1 分钟前,safcz说道: 这是今天刚写的吗 是的,刚写的! 为了表达我对你的排版技术的憧憬,我抱着热情写下了这个脚本。 不过失败了很多次...... 这个论坛会给表格加很多CSS Style,所以需要调试。
推荐贴
创建帐号或登入才能点评
您必须成为用户才能点评
创建帐号
在我们社区注册个新的帐号。非常简单!
注册新帐号登入
已有帐号? 登入
现在登入