1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-01 22:53:29 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

引入书栖网 vi logo

This commit is contained in:
2022-04-03 13:04:42 +08:00
parent 014433befd
commit 49cb1ceb74
55 changed files with 1256 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
import os
from PIL import Image
lengths = [
16, # 微博开放平台 应用图标
18,
24,
32,
48,
64,
80, # 微博开放平台 应用图标
100, # QQ互联管理中心 网站图标
120, # 微博开放平台 应用图标
128,
256,
400,
512,
1000,
1024,
2000
]
# fileExtension = [ 'png', 'jpg', 'ico' ]
outputDir = "./output"
if not os.path.isdir(outputDir):
os.mkdir(outputDir) # 指定的目录不存在
pic = Image.open('书栖网.png')
# pic = Image.open('logo-origin.svg')
for length in lengths:
newpic = pic.resize((length, length),Image.ANTIALIAS)
print (newpic)
fileName = './output/logo_'+str(length)+'x'+str(length) # 包含文件名,不包含文件后缀的相对路径
newpic.save(fileName+'.png')
newpic.save(fileName+'.ico')
newWhitebgPic = Image.new("RGBA", newpic.size, "WHITE")
newWhitebgPic.paste(newpic, (0, 0), newpic)
newWhitebgPic.convert('RGB').save(fileName+'.jpg', "JPEG")

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 891 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -0,0 +1 @@
pip install Pillow

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">
<g>
<path d="M419.06,79.42c20.83-1.3,36.45,7.17,46.88,25.39c-3.91,32.56-5.22,66.41-3.91,101.56
c71.61,13.03,147.12,20.84,226.56,23.44c9.11,5.22,18.88,12.38,29.3,21.48c6.5,16.94,9.11,37.11,7.81,60.55
c-9.12,56-20.84,111.33-35.16,166.02c36.45,3.91,71.61,12.38,105.47,25.39c10.41,9.12,18.22,19.53,23.44,31.25
c0,33.86-0.66,67.72-1.95,101.56c-13.03,57.3-32.56,111.33-58.59,162.11c-16.94,20.84-36.47,35.81-58.59,44.92
c-36.47,9.12-69.67,5.22-99.61-11.72c-6.52-20.83-3.91-38.41,7.81-52.73c23.44-6.5,48.17-12.36,74.22-17.58
c23.44-32.55,40.36-67.05,50.78-103.52c10.41-33.84,9.77-64.45-1.95-91.8c-85.94-2.59-172.53-2.59-259.77,0
c-14.33,119.8-21.48,242.19-21.48,367.19c-15.62,14.31-35.16,18.88-58.59,13.67c-6.52-5.22-11.08-11.08-13.67-17.58
c0-122.39,0-243.48,0-363.28H159.29c-15.62-18.22-18.23-36.45-7.81-54.69c9.11-13.02,22.78-22.12,41.02-27.34
c61.19,0,123.05,1.31,185.55,3.91c6.5-57.28,8.45-119.14,5.86-185.55c-61.2-7.81-123.7-9.77-187.5-5.86
c-10.42-5.2-18.23-12.36-23.44-21.48c-3.91-14.31-2.61-27.34,3.91-39.06c6.5-6.5,13.67-11.72,21.48-15.62
c61.19-6.5,123.69-11.06,187.5-13.67v-91.8C392.35,97.66,403.43,85.94,419.06,79.42z M462.02,300.12v179.69
c46.88,3.91,95.7,5.22,146.48,3.91c16.92-55.98,28.64-113.92,35.16-173.83C583.76,295.58,523.21,292.31,462.02,300.12z"/>
<path d="M677.74,83.85c-31.96-4.54-76.35,0.17-82,18c-4.84,15.25,6,49.31,18,59.33c48,40.06,110.09,28.98,138.67,53.33
c53.52,45.61-17.81,118.28,41.33,169.33c14.52,12.54,39.97,26.48,56,18c28.14-14.89,21.38-98.57,3.58-150.66
C828.78,179.41,763.47,96.02,677.74,83.85z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#FFFFFF;stroke-width:0.01;stroke-miterlimit:10;}
.st1{display:none;}
.st2{fill:#FFFFFF;stroke:#000000;stroke-width:10;stroke-miterlimit:10;}
.st3{font-family:'sucaijishikangkangti';}
.st4{font-size:1000px;}
.st5{display:inline;}
</style>
<g id="图层_1">
<path d="M419.06,79.42c20.83-1.3,36.45,7.17,46.88,25.39c-3.91,32.56-5.22,66.41-3.91,101.56
c71.61,13.03,147.12,20.84,226.56,23.44c9.11,5.22,18.88,12.38,29.3,21.48c6.5,16.94,9.11,37.11,7.81,60.55
c-9.12,56-20.84,111.33-35.16,166.02c36.45,3.91,71.61,12.38,105.47,25.39c10.41,9.12,18.22,19.53,23.44,31.25
c0,33.86-0.66,67.72-1.95,101.56c-13.03,57.3-32.56,111.33-58.59,162.11c-16.94,20.84-36.47,35.81-58.59,44.92
c-36.47,9.12-69.67,5.22-99.61-11.72c-6.52-20.83-3.91-38.41,7.81-52.73c23.44-6.5,48.17-12.36,74.22-17.58
c23.44-32.55,40.36-67.05,50.78-103.52c10.41-33.84,9.77-64.45-1.95-91.8c-85.94-2.59-172.53-2.59-259.77,0
c-14.33,119.8-21.48,242.19-21.48,367.19c-15.62,14.31-35.16,18.88-58.59,13.67c-6.52-5.22-11.08-11.08-13.67-17.58
c0-122.39,0-243.48,0-363.28H159.29c-15.62-18.22-18.23-36.45-7.81-54.69c9.11-13.02,22.78-22.12,41.02-27.34
c61.19,0,123.05,1.31,185.55,3.91c6.5-57.28,8.45-119.14,5.86-185.55c-61.2-7.81-123.7-9.77-187.5-5.86
c-10.42-5.2-18.23-12.36-23.44-21.48c-3.91-14.31-2.61-27.34,3.91-39.06c6.5-6.5,13.67-11.72,21.48-15.62
c61.19-6.5,123.69-11.06,187.5-13.67v-91.8C392.35,97.66,403.43,85.94,419.06,79.42z M462.02,300.12v179.69
c46.88,3.91,95.7,5.22,146.48,3.91c16.92-55.98,28.64-113.92,35.16-173.83C583.76,295.58,523.21,292.31,462.02,300.12z"/>
<path d="M677.74,83.85c-31.96-4.54-76.35,0.17-82,18c-4.84,15.25,6,49.31,18,59.33c48,40.06,110.09,28.98,138.67,53.33
c53.52,45.61-17.81,118.28,41.33,169.33c14.52,12.54,39.97,26.48,56,18c28.14-14.89,21.38-98.57,3.58-150.66
C828.78,179.41,763.47,96.02,677.74,83.85z"/>
<rect id="_x3C_矩形_x3E_外框" x="0" y="0" class="st0" width="1000" height="1000"/>
</g>
<g id="图层_2" class="st1">
<rect x="0" y="0" class="st2" width="1000" height="1000"/>
<text transform="matrix(1 0 0 1 -2.441406e-04 909.1709)" class="st3 st4"></text>
<g>
<path class="st5" d="M441.41,73.23c20.83-1.3,36.45,7.17,46.88,25.39c-3.91,32.56-5.22,66.41-3.91,101.56
c71.61,13.03,147.12,20.84,226.56,23.44c9.11,5.22,18.88,12.38,29.3,21.48c6.5,16.94,9.11,37.11,7.81,60.55
c-9.12,56-20.84,111.33-35.16,166.02c36.45,3.91,71.61,12.38,105.47,25.39c10.41,9.12,18.22,19.53,23.44,31.25
c0,33.86-0.66,67.72-1.95,101.56c-13.03,57.3-32.56,111.33-58.59,162.11c-16.94,20.84-36.47,35.81-58.59,44.92
c-36.47,9.12-69.67,5.22-99.61-11.72c-6.52-20.83-3.91-38.41,7.81-52.73c23.44-6.5,48.17-12.36,74.22-17.58
c23.44-32.55,40.36-67.05,50.78-103.52c10.41-33.84,9.77-64.45-1.95-91.8c-85.94-2.59-172.53-2.59-259.77,0
c-14.33,119.8-21.48,242.19-21.48,367.19c-15.62,14.31-35.16,18.88-58.59,13.67c-6.52-5.22-11.08-11.08-13.67-17.58
c0-122.39,0-243.48,0-363.28H181.64c-15.62-18.22-18.23-36.45-7.81-54.69c9.11-13.02,22.78-22.12,41.02-27.34
c61.19,0,123.05,1.31,185.55,3.91c6.5-57.28,8.45-119.14,5.86-185.55c-61.2-7.81-123.7-9.77-187.5-5.86
c-10.42-5.2-18.23-12.36-23.44-21.48c-3.91-14.31-2.61-27.34,3.91-39.06c6.5-6.5,13.67-11.72,21.48-15.62
c61.19-6.5,123.69-11.06,187.5-13.67v-91.8C414.7,91.47,425.78,79.75,441.41,73.23z M484.38,293.94v179.69
c46.88,3.91,95.7,5.22,146.48,3.91c16.92-55.98,28.64-113.92,35.16-173.83C606.11,289.39,545.56,286.12,484.38,293.94z
M710.94,73.23c29.94,14.33,52.08,36.47,66.41,66.41c3.91,13.03,5.2,26.7,3.91,41.02c-7.81,14.33-20.19,22.8-37.11,25.39
c-37.77-18.22-65.11-45.56-82.03-82.03c-3.91-14.31-2.61-26.69,3.91-37.11C677.73,75.19,692.7,70.64,710.94,73.23z"/>
</g>
<path class="st5" d="M441.41,73.23c20.83-1.3,36.45,7.17,46.88,25.39c-3.91,32.56-5.22,66.41-3.91,101.56
c71.61,13.03,147.12,20.84,226.56,23.44c9.11,5.22,18.88,12.38,29.3,21.48c6.5,16.94,9.11,37.11,7.81,60.55
c-9.12,56-20.84,111.33-35.16,166.02c36.45,3.91,71.61,12.38,105.47,25.39c10.41,9.12,18.22,19.53,23.44,31.25
c0,33.86-0.66,67.72-1.95,101.56c-13.03,57.3-32.56,111.33-58.59,162.11c-16.94,20.84-36.47,35.81-58.59,44.92
c-36.47,9.12-69.67,5.22-99.61-11.72c-6.52-20.83-3.91-38.41,7.81-52.73c23.44-6.5,48.17-12.36,74.22-17.58
c23.44-32.55,40.36-67.05,50.78-103.52c10.41-33.84,9.77-64.45-1.95-91.8c-85.94-2.59-172.53-2.59-259.77,0
c-14.33,119.8-21.48,242.19-21.48,367.19c-15.62,14.31-35.16,18.88-58.59,13.67c-6.52-5.22-11.08-11.08-13.67-17.58
c0-122.39,0-243.48,0-363.28H181.64c-15.62-18.22-18.23-36.45-7.81-54.69c9.11-13.02,22.78-22.12,41.02-27.34
c61.19,0,123.05,1.31,185.55,3.91c6.5-57.28,8.45-119.14,5.86-185.55c-61.2-7.81-123.7-9.77-187.5-5.86
c-10.42-5.2-18.23-12.36-23.44-21.48c-3.91-14.31-2.61-27.34,3.91-39.06c6.5-6.5,13.67-11.72,21.48-15.62
c61.19-6.5,123.69-11.06,187.5-13.67v-91.8C414.7,91.47,425.78,79.75,441.41,73.23z M484.38,293.94v179.69
c46.88,3.91,95.7,5.22,146.48,3.91c16.92-55.98,28.64-113.92,35.16-173.83C606.11,289.39,545.56,286.12,484.38,293.94z
M710.94,73.23c29.94,14.33,52.08,36.47,66.41,66.41c3.91,13.03,5.2,26.7,3.91,41.02c-7.81,14.33-20.19,22.8-37.11,25.39
c-37.77-18.22-65.11-45.56-82.03-82.03c-3.91-14.31-2.61-26.69,3.91-37.11C677.73,75.19,692.7,70.64,710.94,73.23z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.4 KiB