Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mirai-mamori committed Mar 26, 2020
1 parent 60c744a commit e01fb33
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
57 changes: 57 additions & 0 deletions manifest/jpeg/须知.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
���ڷ���ͼƬ����������3��ѡ�
webp�Ż����ͼ������ԭͼ���ͼ���ⲿ���ͼAPI��
rest-api url����ʾ����https://example.com/wp-json/sakura/v1/image/cover ��
����ݸ��˵������ ��̨-���-Sakura��������-��һ��-����ͼƬ��ѡ�� ѡ��

webp�Ż����ͼ
����v3.3.3֮��������manifest���ɹ��ߣ�ʹ��python3ʵ�֣������ɷ���ͼ�����ļ����������

Ŀ¼���ļ�˵��
.
������ manifest
�� ������ gallary // ���ԭͼƬ
�� ������ jpeg // ������ɵ�����ͼ
�� ������ webp // ���ת����ķ���ͼ
�� ������ manifest.json // ���ɵ�manifest����
�� ������ manifest.py // manifest������
�� ������ qt.py // manifest GUI���򣨿����У�
�� �������� __init__.py // GUI�����ʼ���ļ�
�� ������ icon.* // GUI�ز��ļ�
ʳ�÷�����
��װ����
��װ Python�� https://docs.python.org/zh-cn/3.7/using/index.html

��װ PIL��

# Linux/Mac Terminal
pip install Pillow
# ���Ҳ��װ�� Python 2����Ҫָ�� pip �汾��
pip3 install Pillow

# Windows Powershell ���� CMD
pip install Pillow
# ���Ҳ��װ�� Python 2����Ҫָ�� pip �汾��
pip3 install Pillow
# �����ʾȨ�޲��㣨[WinError 5] Access is denied���������У�
pip install Pillow --user
����
��ͼƬ�ļ��ŵ� gallary Ŀ¼��Windows ��ֱ��˫�� manifest.py�����ߺ���������ϵͳһ������ Terminal��Powershell��CMD �����У�

# �л��� manifest.py ����Ŀ¼��
cd /path/to/manifest/
python manifest.py
# ���Ҳ��װ�� Python 2����Ҫָ�� Python �汾��
python3 manifest.py
֮�������ʾ�������ɣ���������ɷ���ͼ������manifest.json���ϴ���WordPress��̨�������ݿ⡣v3.3.5����Ϊ��˻�ȡmanifest.json���� ��̨-���-Sakura��������-��һ��-����ͼƬ��url ����дurl������ú󣬵�����»Ὣmanifest.json ����WordPress���ݿ�

�� manifest �����ļ����ϴ������cdn������ ��̨-���-Sakura��������-��һ��-����ͼƬ��url ����дurl�����棬����ü�б�ܣ�ע��������ʹ�ñ��ص�manifest·����

eg. manifest�ĵ�ַ�� https://cdn.jsdelivr.net/gh/mashirozx/[email protected]/manifest/��ֻ���ں�̨��д https://cdn.jsdelivr.net/gh/mashirozx/[email protected] ������ʹ�ñ���ͼƬ�⣬��url��д�����ռ���

�ִ������������֧��Webp��������֧�ֵ��������api���Զ�����ѹ�������ͨͼƬ

����ԭͼ���ͼ
�����ڽ�api����ͼƬ���� ����Ŀ¼/manifest/gallary/ �ļ����£����� rest-api url �᷵��ԭͼƬ

�ⲿ���ͼAPI
�� ��̨-���-Sakura��������-��һ��-����ͼƬ��url ����д�ⲿ���ͼAPI��url������ rest-api url �᷵��api��ͼƬ
57 changes: 57 additions & 0 deletions manifest/webp/须知.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
���ڷ���ͼƬ����������3��ѡ�
webp�Ż����ͼ������ԭͼ���ͼ���ⲿ���ͼAPI��
rest-api url����ʾ����https://example.com/wp-json/sakura/v1/image/cover ��
����ݸ��˵������ ��̨-���-Sakura��������-��һ��-����ͼƬ��ѡ�� ѡ��

webp�Ż����ͼ
����v3.3.3֮��������manifest���ɹ��ߣ�ʹ��python3ʵ�֣������ɷ���ͼ�����ļ����������

Ŀ¼���ļ�˵��
.
������ manifest
�� ������ gallary // ���ԭͼƬ
�� ������ jpeg // ������ɵ�����ͼ
�� ������ webp // ���ת����ķ���ͼ
�� ������ manifest.json // ���ɵ�manifest����
�� ������ manifest.py // manifest������
�� ������ qt.py // manifest GUI���򣨿����У�
�� �������� __init__.py // GUI�����ʼ���ļ�
�� ������ icon.* // GUI�ز��ļ�
ʳ�÷�����
��װ����
��װ Python�� https://docs.python.org/zh-cn/3.7/using/index.html

��װ PIL��

# Linux/Mac Terminal
pip install Pillow
# ���Ҳ��װ�� Python 2����Ҫָ�� pip �汾��
pip3 install Pillow

# Windows Powershell ���� CMD
pip install Pillow
# ���Ҳ��װ�� Python 2����Ҫָ�� pip �汾��
pip3 install Pillow
# �����ʾȨ�޲��㣨[WinError 5] Access is denied���������У�
pip install Pillow --user
����
��ͼƬ�ļ��ŵ� gallary Ŀ¼��Windows ��ֱ��˫�� manifest.py�����ߺ���������ϵͳһ������ Terminal��Powershell��CMD �����У�

# �л��� manifest.py ����Ŀ¼��
cd /path/to/manifest/
python manifest.py
# ���Ҳ��װ�� Python 2����Ҫָ�� Python �汾��
python3 manifest.py
֮�������ʾ�������ɣ���������ɷ���ͼ������manifest.json���ϴ���WordPress��̨�������ݿ⡣v3.3.5����Ϊ��˻�ȡmanifest.json���� ��̨-���-Sakura��������-��һ��-����ͼƬ��url ����дurl������ú󣬵�����»Ὣmanifest.json ����WordPress���ݿ�

�� manifest �����ļ����ϴ������cdn������ ��̨-���-Sakura��������-��һ��-����ͼƬ��url ����дurl�����棬����ü�б�ܣ�ע��������ʹ�ñ��ص�manifest·����

eg. manifest�ĵ�ַ�� https://cdn.jsdelivr.net/gh/mashirozx/[email protected]/manifest/��ֻ���ں�̨��д https://cdn.jsdelivr.net/gh/mashirozx/[email protected] ������ʹ�ñ���ͼƬ�⣬��url��д�����ռ���

�ִ������������֧��Webp��������֧�ֵ��������api���Զ�����ѹ�������ͨͼƬ

����ԭͼ���ͼ
�����ڽ�api����ͼƬ���� ����Ŀ¼/manifest/gallary/ �ļ����£����� rest-api url �᷵��ԭͼƬ

�ⲿ���ͼAPI
�� ��̨-���-Sakura��������-��һ��-����ͼƬ��url ����д�ⲿ���ͼAPI��url������ rest-api url �᷵��api��ͼƬ

0 comments on commit e01fb33

Please sign in to comment.