markdown-img-icexmoon 0.4.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/PKG-INFO +9 -2
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/setup.cfg +1 -1
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/main.py +2 -1
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/smms_img.py +4 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/PKG-INFO +9 -2
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/SOURCES.txt +2 -1
- markdown_img_icexmoon-1.0.0/tests/test.py +12 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/LICENSE +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/README.md +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/pyproject.toml +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/setup.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/__init__.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/__main__.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/__init__.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress_manager.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/none_compress_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/pillow_compress_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/tinypng_compress_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/config.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/config_backup.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/download_help.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/globalization.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/help.info +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/help_en.info +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/Upyun_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/__init__.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/bilibili_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/fz_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/none_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/qcloud_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/qiniu_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/smms_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/vimcn_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/yujian_img_service.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service_manager.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/qcloud_client.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/qiniu_client.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/time_helper.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/__init__.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/debug.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/file_tools.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/my_time.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/user_exception.py +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/dependency_links.txt +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/entry_points.txt +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/requires.txt +0 -0
- {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-img-icexmoon
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A program for find and upload images in markdown file and will replace them.
|
|
5
5
|
Home-page: https://github.com/icexmoon/markdown-img
|
|
6
6
|
Author: icexmoon
|
|
@@ -12,6 +12,13 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: requests
|
|
16
|
+
Requires-Dist: cos-python-sdk-v5
|
|
17
|
+
Requires-Dist: qiniu
|
|
18
|
+
Requires-Dist: upyun
|
|
19
|
+
Requires-Dist: Pillow
|
|
20
|
+
Requires-Dist: tinify
|
|
21
|
+
Dynamic: license-file
|
|
15
22
|
|
|
16
23
|
# Markdown-img User's Guide
|
|
17
24
|
|
|
@@ -152,7 +152,8 @@ class Main():
|
|
|
152
152
|
shutil.copyfile(localImg, relativeLocalImage)
|
|
153
153
|
# 替换图片路径为相对路径
|
|
154
154
|
line = line.replace(
|
|
155
|
-
|
|
155
|
+
# 改为使用/而非\
|
|
156
|
+
localImg, "."+"/"+"images"+"/"+imgName)
|
|
156
157
|
copyFileOpen.write(line)
|
|
157
158
|
copyFileOpen.close()
|
|
158
159
|
# 保存原始文件备份
|
|
@@ -39,6 +39,10 @@ class SmmsImg():
|
|
|
39
39
|
images[MAX_SAME_TIME_DEAL:len(images)], results)
|
|
40
40
|
|
|
41
41
|
def uploadOne(self, localImg):
|
|
42
|
+
# 如果是 gif 而非静态图片,不压缩
|
|
43
|
+
if (localImg.endswith(".gif")):
|
|
44
|
+
imgService = ImgServiceManager.getImgService()
|
|
45
|
+
return imgService.upload(localImg)
|
|
42
46
|
# 如果设置了压缩选项,进行压缩
|
|
43
47
|
info = self.sysConfig.getCompressInfo()
|
|
44
48
|
if(info[Config.COMPRESS_INFO_STATUS] == "on"):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-img-icexmoon
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A program for find and upload images in markdown file and will replace them.
|
|
5
5
|
Home-page: https://github.com/icexmoon/markdown-img
|
|
6
6
|
Author: icexmoon
|
|
@@ -12,6 +12,13 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: requests
|
|
16
|
+
Requires-Dist: cos-python-sdk-v5
|
|
17
|
+
Requires-Dist: qiniu
|
|
18
|
+
Requires-Dist: upyun
|
|
19
|
+
Requires-Dist: Pillow
|
|
20
|
+
Requires-Dist: tinify
|
|
21
|
+
Dynamic: license-file
|
|
15
22
|
|
|
16
23
|
# Markdown-img User's Guide
|
|
17
24
|
|
|
@@ -45,4 +45,5 @@ src/markdown_img_icexmoon.egg-info/SOURCES.txt
|
|
|
45
45
|
src/markdown_img_icexmoon.egg-info/dependency_links.txt
|
|
46
46
|
src/markdown_img_icexmoon.egg-info/entry_points.txt
|
|
47
47
|
src/markdown_img_icexmoon.egg-info/requires.txt
|
|
48
|
-
src/markdown_img_icexmoon.egg-info/top_level.txt
|
|
48
|
+
src/markdown_img_icexmoon.egg-info/top_level.txt
|
|
49
|
+
tests/test.py
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
sys.path.insert(-2, "D:\\workspace\\markdown-img2\\src")
|
|
3
|
+
print(sys.path)
|
|
4
|
+
from markdown_img.main import Main
|
|
5
|
+
import os
|
|
6
|
+
testFile = '.\\markdown_img\\test_image.md'
|
|
7
|
+
if os.path.exists(testFile):
|
|
8
|
+
os.remove(testFile)
|
|
9
|
+
main = Main()
|
|
10
|
+
main.changeImgService("upyun")
|
|
11
|
+
main.changeMainPrams({"compress_engine": "tinyPNG"})
|
|
12
|
+
main.main(True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/__init__.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/config_backup.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/download_help.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/globalization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service_manager.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/qcloud_client.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/qiniu_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/file_tools.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/my_time.py
RENAMED
|
File without changes
|
{markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/user_exception.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|