Coder Social home page Coder Social logo

Comments (10)

zihengCat avatar zihengCat commented on June 23, 2024

@JamieDummy
能不能发下你的MD文档与样例图片?

from bilibili-zhuanlan-markdown-tool.

FakeC0de avatar FakeC0de commented on June 23, 2024

http://suo.im/4ojvIX
上面文件夹包含成功版本md和相关图片原图 以及错误版本md以及相关图片原图

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on June 23, 2024

@JamieDummy
我这边测试了下,没有问题...

screen shot 2018-08-23 at 10 18 01

screen shot 2018-08-23 at 10 18 07

screen shot 2018-08-23 at 10 18 12

from bilibili-zhuanlan-markdown-tool.

FakeC0de avatar FakeC0de commented on June 23, 2024

????奇怪了 那我这个unsuccessful会是什么原因导致的呢?有没有关于这段代码(bili_zhuanlan_markdown.js:431)的一个大致的可能原因分析么……我现在排查起来完全没有头绪……成功版本的md能传上说明config设置应该没有出现问题……怀疑图片本身有问题的话 你这验证结果又让我完全摸不着头脑了……

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on June 23, 2024

@JamieDummy
![Pasted Graphic_result](./Pasted Graphic_result.png)图片名称里面不要带有空格。
还有,你这张图片能不能给我看下?

from bilibili-zhuanlan-markdown-tool.

FakeC0de avatar FakeC0de commented on June 23, 2024

感觉问题并不在于此吧……我上传失败的md里这张图是这样的(没有空格)
![IMG_F764D8591743-1](./IMG_6603.PNG)
上传成功的md里这张图是这样的(没有空格)
![IMG_F764D8591743-1](./IMG_1D154DEFB727-1.jpeg)
(可参考上面链接中的文档)
然后上传效果是这样的:
image
至于./Pasted Graphic_result.png图片(感觉应该是无关紧要的图片) 已在上面的文件夹链接中更新

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on June 23, 2024

@JamieDummy
IMG_6603.PNG的图片格式为jpg,但是其后缀名却被标注为PNG,这样可能会有问题。你把图片后缀名改成正确形式再试试看。
screen shot 2018-08-23 at 11 37 16

from bilibili-zhuanlan-markdown-tool.

FakeC0de avatar FakeC0de commented on June 23, 2024

惊了 真的是这个问题……上传OK了 感谢帮忙排除问题🙏 接下来工作看来就是一个一个查是哪些图片格式标识错误了orz……

from bilibili-zhuanlan-markdown-tool.

zihengCat avatar zihengCat commented on June 23, 2024

@JamieDummy
这份小脚本给你用吧,可以检测出jpgpnggif图片格式。
LinuxmacOS都可以使用,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.

FakeC0de avatar FakeC0de commented on June 23, 2024

感谢脚本指导 已经修正并上传成功了 不过b站对这个序号格式的支持实在是太**了……上传完的md所有的项目序号变得乱七八糟……不过这也是b站的老锅了……还是感谢下提供了这么个方便的工具🙏

from bilibili-zhuanlan-markdown-tool.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.