webhintio / rfcs

🛑 This repository is deprecated!! To request changes, new features, hints, etc. please open an issue in https://github.com/webhintio/hint
1 stars 1 forks source link

[Hint] Cloudinary improvements #13

Closed molant closed 5 years ago

molant commented 6 years ago

Originally reported by @molant in https://github.com/webhintio/hint/issues/658

@molant

There is a new endpoint from Cloudinary where you can upload an image and it will give you information about other formats. It is currently not supported in the npm package but it's available in one of the branches. We should look into adding support for it.

Because we only need to upload images maybe we can remove the dependency on the package and have our own version.

I'll update this issue once I've explored a bit more the code.

@AndrewCraswell

Do you have a link to this? I was already thinking about building a desktop tool to "scan" images by just uploading them to Cloudinary and downloading the optimized version, but this sounds more interesting. Would love to have similar functionality built into Sonarwhal...

@molant

The new endpoints are exposed in https://github.com/cloudinary/cloudinary_npm/tree/analyze_api and used in https://github.com/cloudinary/web-speed-test-client (code for https://webspeedtest.cloudinary.com/). The code hasn't been published to npm so we will probably have to create our own uploader that talks with the endpoint directly (shouldn't have to be too complicated)

My plan is to start working on this in January (trying to finish #142 and #12 and some other items) but if you want to submit a PR before that would be awesome.