DEV Community

Dave Parr
Dave Parr

Posted on

Recommend an image hosting service for my dev.to api wrapper

I am writing a wrapper in R for the dev.to API. One of the goals is to allow images that are generated from an .Rmd to be visible in the post.

Idea 1 - googledrive

I thought I might be able to use the googledrive package to put images into my gdrive, but I haven't been able to find a way to get a link that shows up in dev.to

Idea 2 - imgur

Imgur used to support anonymous uploads and have an API wrapper to R, but the package in question has been looking for a new maintainer. Also, in a really quick test the current codebase appears broken.

Idea 3 - S3 bucket

I could setup my own s3 bucket, and link the images from there, however that requires a lot of setup for other users, I wanted to keep this as 'low barrier' as possible.

Idea 4 - Rpubs

RPubs allows uploads of documents from Rstudio IDE really easily, though AFAIK you can't then pull an actual link out of the image that will display in the article, for instance this old plot I made for an SO question

Goals

  • Needs to be easy to setup
  • Needs to be effectively free
  • Needs to be accessible programmatically (API etc)
  • Would be great if there was no authorisation required
  • Would be great if there was already an interface with R

Ideas?

Top comments (2)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I would use simply Git, unless I need image transform service. Only then, I might try Cloudinary.

I can also use Dropbox if I need to.

Collapse
 
daveparr profile image
Dave Parr

Git actually might be the thing I need. Thanks :)