@cutting/cloudinary-blurhash
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@cutting/cloudinary-blurhash

Cloudinary BlurHash will generate a JSON file mappig your Cloudinary images, with their blurhash equivalent.

e.g.

[
  {
    "id": "image_hash.png",
    "url": "https://res.cloudinary.com/ddospxsc8/image/upload/v11/image_hash.png",
    "blurhash": "U25Y1#_4xT-;NO-=?a%MV?j[o#WB?EW9ItM{",
    "width": 600,
    "height": 404
  },

Usage

Declare the CLOUDINARY_URL environment variable that takes this format.

export CLOUDINARY_URL=cloudinary://<API_KEY>:<CLOUDINARY_API_SECRET>@<CLOUDINARY_CLOUD_NAME>

Run

npx @cutting/cloudinary-blurhash

Switches

  • -f or --file, the file name and path to the JSON output. Default is <CWD>/blurhash_image_map.json

e.g.

npx @cutting/cloudinary-blurhash -f ./app/json/blurhash_image_map.json

This package creates a bin script that can be executed like this:

npx @cutting/cloudinary-blurhash

Your console should look something like this:

cloudinary-blurhash cli

Readme

Keywords

none

Package Sidebar

Install

npm i @cutting/cloudinary-blurhash

Weekly Downloads

2

Version

0.1.7

License

none

Unpacked Size

11.8 kB

Total Files

11

Last publish

Collaborators

  • cutting