strafe / grumi Goto Github PK
View Code? Open in Web Editor NEW๐ผ๏ธ Upload an image, video or album to Imgur via the command line
Home Page: https://imgur.com
License: MIT License
๐ผ๏ธ Upload an image, video or album to Imgur via the command line
Home Page: https://imgur.com
License: MIT License
Imgur now seems to support two additional video formats (video/mp4
& video/quicktime
).
video/mp4
was supported but only when uploaded using the https://imgur.com website.Images are no longer limited to 1MB, instead there is now a 20MB maximum.
Videos are no longer limited to 30 seconds, instead there is now a 60 second limit.
Note that the current API docs still state:
image - A binary file, base64 data, or a URL for an image. (up to 10MB)
video - A binary file (up to 200MB)
There are a number of errors the API can return that could be avoided by local sanity checks before attempting to upload:
image/jpeg
, image/gif
, image/apng
, image/tiff
& image/png
.video/mp4
, video/webm
, video/x-matroska
, video/quicktime
, video/x-flv
, video/x-msvideo
, video/x-ms-wmv
& video/mpeg
.ffprobe
if available.It shouldn't be too difficult to parse error messages through RegEx, and since this is all that jq is used for it may be worth trying to drop it. Shell script dependencies aren't fun on a lot of operating systems.
The process will hang for roughly a minute, before printing a failed to upload message with no reason.
$ grumi video.webm
Error uploading video.webm ()
No images uploaded.
According to the API docs, images can be uploaded via a URL rather than a local file (this doesn't apply to videos).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.