Introduction : The normalize() function is an inbuilt function in Nodejs | Jimp which normalizes the colors of an image by computing a histogram.
- cb – This is an optional parameter which is invoked when compilation is complete.
Setup Environment :
npm init -y
Install Dependencies :
npm install jimp
Example 2: With mode and cb (optional parameters)
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.