September 2017
Intermediate to advanced
450 pages
11h 24m
English
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:
Read now
Unlock full access