Upload images to GitHub from the browser

前端 未结 7 883
执笔经年
执笔经年 2020-12-24 02:22

I am using GitHub Pages, Jekyll, and Prose to manage a Website. Everything works fine, besides I cannot find a way to upload images. The Prose image uploader is not working

7条回答
  •  悲哀的现实
    2020-12-24 02:42

    The workaround I use, is to base64 encode images, here is one tool that will do that for you (it even offers image optimization): https://www.base64-image.de/

    Then you can just click copy image and that will give you a long string of characters that can be used inside of an 's src="", or a markdown embedded image ![alt text](data:image/png;crazy-long-string-of-characters).

    I did that for this blog post I wrote from a ChromeBook:

    https://ryanpcmcquen.org/javascript/2015/10/20/fix-hackpad-printing.html

    The screenshots there are base64!

提交回复
热议问题