Getting ready

Let's create a middleware layer to our Express web server to customize our requested image styling. We will load images from our localhost:3000/api/images/:id route, but will pass through some customization options as URL parameters to change the width, height, crop, and even format of the image result returned to us.

For this recipe, we will need to install Lodash, a very popular micro-library that works with arrays and objects in JavaScript and Node.js:

npm install --save lodash

We'll be using Lodash to do property filtering for our Cloudinary image transformation options. If you are interested in learning more about Lodash and its capabilities, you can check out the official documentation for more details:

https://lodash.com/docs

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.201.235