v1.2.6: 操作后显示预览效果,保留原始图片

This commit is contained in:
2026-04-21 17:04:15 +08:00
parent 6db10c0c83
commit a99cb57a2f
3 changed files with 145 additions and 26 deletions

10
app.py
View File

@@ -1,7 +1,7 @@
"""
图片编辑器 - Image Editor v1.2.5
图片编辑器 - Image Editor v1.2.6
前端图片处理工具:合并、分割、挖孔填充、圆形切图、文字图片等
v1.2.5: 修复操作后面板判断问题
v1.2.6: 操作后显示预览效果,保留原始图片
端口: 19018
"""
@@ -25,7 +25,7 @@ def index():
@app.route('/api/health')
def health():
return jsonify({'status': 'ok', 'version': '1.2.5', 'time': datetime.now().isoformat()})
return jsonify({'status': 'ok', 'version': '1.2.6', 'time': datetime.now().isoformat()})
@app.route('/api/save', methods=['POST'])
def save_image():
@@ -64,9 +64,9 @@ def list_images():
if __name__ == '__main__':
print("=" * 50)
print("图片编辑器 - Image Editor v1.2.5")
print("图片编辑器 - Image Editor v1.2.6")
print("=" * 50)
print("修复操作后面板判断问题")
print("操作后显示预览效果,保留原始图片")
print(f"访问地址: http://localhost:19018")
print("=" * 50)
app.run(host='0.0.0.0', port=19018, debug=True)