This article is written by Yanglbme and first published on the public account “Doocs Open Source Community”. Please contact me at the background of the official account to open the white.

Recently, I am writing a small tool and need to use the chart bed. At first, I used the chart bed sm. MS, but for the free version users, the speed of uploading and parsing sm. MS pictures is very slow, and the user experience is very poor. Later, the circle of friends built a map bed, I experience the next, is really very easy to use.

This free and easy to use chart bed is called Chart Shell.

What exactly is a diagram shell

Picture shell, picture the most stable home. Image shell is a free platform that provides the ability to store images. The copyright of the content uploaded by the user belongs to the user and the user shall assume corresponding responsibilities. FIG shell reserves the right to delete the picture and report the illegal uploader.

Free and stable.

What are the forbidden behaviors in the diagram shell

Uploading and sharing of the following types of pictures is strictly prohibited:

  • Pornographic, violent and terrorist-promoting images
  • Copyright infringement, unauthorized images
  • Other pictures that violate the laws of the People’s Republic of China
  • Other images that violate Hong Kong laws

Please standardize the use.

How to use the shell

1. Upload it on the homepage of the official website

You can upload pictures at imgkr.com/#upload. Image shell supports up to 5 images uploaded at the same time. After uploading successfully, click the image to automatically copy the image link.

2. Upload the file through the API interface

At present, the picture shell does not have a description document about the picture uploading interface. I analyzed the picture uploading request and simply organized an interface request document to share with you.

  • Request path: imgkr.com/api/files/u…

  • Request method: POST

  • Request header:

    Parameter names The parameter value
    Content-Type multipart/form-data
  • Request body:

    Parameter names The parameter types note
    file file Uploaded file
  • Response body:

    Parameter names The parameter types note
    code integer Status code
    message string The response message
    success boolean The response status
    data string Image URL on success

    Example:

    {
        "code":200."message":"Request successful"."success":true."data":"https://imgkr.cn-bj.ufileos.com/58952759-79f2-4907-9975-9696880056ee.jpg"
    }
    Copy the code

So easy to use chart bed, love.

What else have you seen that works? Recommend a wave?


Welcome to follow my wechat public account “Doocs Open Source Community” and push original technical articles as soon as possible.