Comments (10)
@JamieDummy
能不能发下你的MD文档与样例图片?
from bilibili-zhuanlan-markdown-tool.
http://suo.im/4ojvIX
上面文件夹包含成功版本md和相关图片原图 以及错误版本md以及相关图片原图
from bilibili-zhuanlan-markdown-tool.
@JamieDummy
我这边测试了下,没有问题...
from bilibili-zhuanlan-markdown-tool.
????奇怪了 那我这个unsuccessful会是什么原因导致的呢?有没有关于这段代码(bili_zhuanlan_markdown.js:431)的一个大致的可能原因分析么……我现在排查起来完全没有头绪……成功版本的md能传上说明config设置应该没有出现问题……怀疑图片本身有问题的话 你这验证结果又让我完全摸不着头脑了……
from bilibili-zhuanlan-markdown-tool.
@JamieDummy
![Pasted Graphic_result](./Pasted Graphic_result.png)
图片名称里面不要带有空格。
还有,你这张图片能不能给我看下?
from bilibili-zhuanlan-markdown-tool.
感觉问题并不在于此吧……我上传失败的md里这张图是这样的(没有空格)
![IMG_F764D8591743-1](./IMG_6603.PNG)
上传成功的md里这张图是这样的(没有空格)
![IMG_F764D8591743-1](./IMG_1D154DEFB727-1.jpeg)
(可参考上面链接中的文档)
然后上传效果是这样的:
至于./Pasted Graphic_result.png
图片(感觉应该是无关紧要的图片) 已在上面的文件夹链接中更新
from bilibili-zhuanlan-markdown-tool.
@JamieDummy
IMG_6603.PNG
的图片格式为jpg
,但是其后缀名却被标注为PNG
,这样可能会有问题。你把图片后缀名改成正确形式再试试看。
from bilibili-zhuanlan-markdown-tool.
惊了 真的是这个问题……上传OK了 感谢帮忙排除问题🙏 接下来工作看来就是一个一个查是哪些图片格式标识错误了orz……
from bilibili-zhuanlan-markdown-tool.
@JamieDummy
这份小脚本给你用吧,可以检测出jpg
、png
、gif
图片格式。
Linux
,macOS
都可以使用,Windows
不行...
用法参考这里:#2 (comment)
当然,你直接用file
命令也是可以的。
#!/bin/bash
# -------------------------------------------------
# Simple Bash Script for Detecting Images File Type
# -------------------------------------------------
# Author: zihengCat
# Requirements: bash, xxd
# Platform: UNIX, Linux, macOS
# -------------------------------------------------
if [[ ${#} != 1 ]]
then
echo "[ERROR]: command line parameter does not fit"
else
# Read first 3 bytes and first 4 bytes
bytes_3=$(xxd -p -l 3 ${1})
bytes_4=$(xxd -p -l 4 ${1})
if [[ ${bytes_3} == "ffd8ff" ]]
then
echo "[INFO] Image File \`${1}\` Type => \`jpg\`"
elif [[ ${bytes_4} == "89504e47" ]]
then
echo "[INFO] Image File \`${1}\` Type => \`png\`"
elif [[ ${bytes_4} == "47494638" ]]
then
echo "[INFO] Image File \`${1}\` Type => \`gif\`"
else
echo "[INFO] File \`${1}\` Type => \`unknown\`"
fi
fi
from bilibili-zhuanlan-markdown-tool.
感谢脚本指导 已经修正并上传成功了 不过b站对这个序号格式的支持实在是太**了……上传完的md所有的项目序号变得乱七八糟……不过这也是b站的老锅了……还是感谢下提供了这么个方便的工具🙏
from bilibili-zhuanlan-markdown-tool.
Related Issues (8)
- 页面显示提交成功,但是其实并没有更改内容 HOT 12
- 命令行提交了以后没报错,网页也提示成功,但是进草稿箱看不到 HOT 2
- 用的网页提交成功,但是进草稿箱看不到,还是和原来一样 HOT 7
- 这个报错是什么意思啊 HOT 2
- [Feature Request]基于用户名和密码的登录 HOT 3
- 提交一次之后后续的提交就无效了? HOT 1
- latex in markdown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilibili-zhuanlan-markdown-tool.