diff --git a/.github/workflows/pack_img.yaml b/.github/workflows/pack_img.yaml index 77018ec..6cf996e 100644 --- a/.github/workflows/pack_img.yaml +++ b/.github/workflows/pack_img.yaml @@ -34,15 +34,20 @@ jobs: - name: Save stitched image as artifact uses: actions/upload-artifact@v3 with: - name: stitched_image # 上传生成的图片作为 artifact - path: auto_img.png # 替换为你生成图片的路径 - + name: auto_img_zh_cn # 上传生成的图片作为 artifact + path: auto_img_zh_cn.png # 替换为你生成图片的路径 + - name: Save stitched image as artifact + uses: actions/upload-artifact@v3 + with: + name: auto_img_en # 上传生成的图片作为 artifact + path: auto_img_en.png # 替换为你生成图片的路径 - name: Commit and push updated file run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git add auto_img_zh_cn.png # 添加你想要提交的文件 + git add auto_img_en.png git commit -m "Update file with new data" git push origin main # 推送更改回 main 分支 env: diff --git a/README.md b/README.md index a9fec16..e9d4be5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Pull Request的时候提交小图即可 大图太容易冲突了 ## 自动生成的大图 ![](auto_img_zh_cn.png) - +![](auto_img_en.png) [QQ群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=GSK0q5Be9BtgPh-7UDEgw1XUc9eNlb_E&authKey=s54nZ9lIbjETFV2sQj65vJHoH04tg%2Bst%2FB%2Fo0WgVTyRGo%2BxL0ZPw8%2BHX3oNnr%2FIo&noverify=0&group_code=810025413) ## 梦开始的地方 diff --git a/auto_pack_img.py b/auto_pack_img.py index ad74c28..9757718 100644 --- a/auto_pack_img.py +++ b/auto_pack_img.py @@ -124,3 +124,12 @@ stitched_image = stitch_images_bin_packing(images) cv2.imwrite('auto_img_zh_cn.png', stitched_image) + + +folder = 'en' +images = load_images_from_folder(folder) + +stitched_image = stitch_images_bin_packing(images) + + +cv2.imwrite('auto_img_en.png', stitched_image)