添加新表情的指南
在上传图片前,这些涉及信息传达、效能、安全方面的考量可能是您需要参考的。
(可选)为了减少一些网友的安全顾虑,上传完毕后,建议附上图集的链接(地址形如https://imgur.com/a/qjEOxfQ ),以证明自己已没有图片管理权。
上传图片前的准备
检查有没有会透露隐私的图片。如果图片是您自己制作的,或者不是从匿名获取的,请使用metadata-cleaner或者exiftool,清除元数据(meta data),
上传图片
非常简单,不需要任何账号。步骤
- 打开https://imgur.com/upload 这是imgur的上传页面,可以直接在上面上传图片。在文件夹中按Ctrl+A选中所有图片,拖进浏览器窗口。
- 上传之后会直接来到post页面。右键点击图片,复制图像地址(copy image link),复制的地址形如
https://i.imgur.com/xxxxxxxxx.png或jpg或者gif。打开记事本,把链接挨个粘贴到里面。100张图也就耗时五分钟吧真是辛苦您了。 - (可选)批量编辑链接。这一步我用python处理的。如果您从没用过python,用AI会更好。如果图不多,手动编辑也可以。
处理前
https://i.imgur.com/zLfHWfw.jpeg
https://i.imgur.com/Qpx0gET.jpeg
https://i.imgur.com/nBd5ZAd.jpeg
处理后
``

``

``

python代码,把含链接的文件放到links文件夹里的,运行下面的代码。不会用请忽略,或者问AI怎么用。
import os
def add_newline_to_files_in_new_folder(source_folder, destination_folder):
# Create the destination folder if it doesn't exist
os.makedirs(destination_folder, exist_ok=True)
# Iterate through all files in the specified source folder
for filename in os.listdir(source_folder):
source_file_path = os.path.join(source_folder, filename)
# Check if it's a file (not a directory)
if os.path.isfile(source_file_path):
print(f"Processing file: {source_file_path}")
# Read the file and add '\n' to the end of every line
with open(source_file_path, 'r') as file:
lines = file.readlines()
# Add '\n' to the end of every line
#modified_lines = [line.rstrip('\n')+'\n\n' for line in lines]
#to markdown
modified_lines = ['`+')`\n\n'+'+')\n\n' for line in lines]
#to html
#modified_lines = ['`<img src="'+line.rstrip('\n')+'" alt="" />`\n\n'+'<img src="'+line.rstrip('\n')+'" alt="" />\n\n' for line in lines]
# Create the destination file path
destination_file_path = os.path.join(destination_folder, filename)
# Write the modified lines to the new file in the destination folder
with open(destination_file_path, 'w') as file:
file.writelines(modified_lines)
# Specify the source folder and destination folder
source_folder = 'links' # Change this to your source folder path
destination_folder = 'links_output' # Change this to your destination folder path
# Call the function
add_newline_to_files_in_new_folder(source_folder, destination_folder)
4.回到论坛,把编辑好的链接粘贴进去。新的表情类型请另开新帖,您可以把链接发到这里我会整合到主帖。如果我没响应,建议您复制本帖的源码,重制索引把你的表情库加进去。













































