Super light-weight linux-cli tool to upload images to the Imgbb free images storage in less than 2 seconds!
- Maximum Size of image:
15MB
- Maximum images p/hour:
20
This also works on windows, i didn't test it, but i know the
syscalls
that the go libraries does are the same in windows, so you will have no issues at the moment of adding this binary in your terminal.
- You must set the
IMGBB_API_KEY
(as a local env) with your api key obtained from ImgBB Free API. Example:Once you do that, you're readyexport IMGBB_API_KEY=1234567thisIsAnInvalidKey
- There is an
install.sh
file inside this repo, you cansudo bash install.sh
- Only move the binary in this repo to
/usr/local/bin/
. Example:# upload is the binary file name sudo cp <yourPathTo>/imbgg-uploader/upload /usr/local/bin/upload
- If you don't trust, you can check the code by your own and do a
go build -o "binaryName"
and then move that to your bin path.
upload exampleImage.png
upload ../../anotherImage.jpg
(the tool is relative to your current working directory)
{
"data": {
"thumb": {
"filename": "p.png",
"mime": "image/png",
"url": "https://i.ibb.co/fr15bqj/p.png"
},
"delete_url": "https://ibb.co/fr15bqj/63869b09cb22ac411898d3470108ec39"
},
"success": true,
"status": 200,
"error": {}
}
Enjoy!
- work with absolute path
- progress bar
- go routines