Commit 5559140d by 蒋勇

d

parent f9dc4309
......@@ -67,7 +67,7 @@ def make_zip(brand_text):
def put2oss(imagename, imagepath):
# 阿里云接口地址
endpoint = 'http://oss-cn-beijing.aliyuncs.com'
auth = oss2.Auth('LTAIyAUK8AD04P5S', 'DHmRtFlw2Zr3KaRwUFeiu7FWATnmla')
auth = oss2.Auth('LTAI4GC5tSKvqsH2hMqj6pvd', '3KV9nIwW8qkTGlrPmAe3HnR3fzM6r5')
bucket = oss2.Bucket(auth, endpoint, 'gsb-zc')
# current_file_path = "table.jpg"
# current_fold = time.strftime('%Y%m%d%H%M%S', time.localtime())
......@@ -100,4 +100,4 @@ def add_watermark(logo_img, text):
# 原始图片尺寸
img_with_watermark = img_with_watermark.crop((width, height, width * 2, height * 2))
return img_with_watermark.convert("RGB")
return img_with_watermark.convert("RGB")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment