The main idea of this library, created in JavaScript, is to provide a ready-made set of methods for image processing
npm install qansigliere-image-processing-libraryThe main idea of this library, created in JavaScript, is to provide a ready-made set of methods for image processing
https://www.youtube.com/@QANSIGLIERE/
https://buymeacoffee.com/qansigliere
Using npm: npm i qansigliere-image-processing-library
- saveBase64AsImage(base64String, fullPathToFile) - it allows us to save a base64 string as a .PNG image
- compare2Images(imagePath1, imagePath2, pathToDifferenceFolder) - it compares two different or similar .PNG images
with the same resolution, generates a file with different pixes. The function returns an object like { file: the
file with different pixels, differentPixels: the number of different pixels, percent: the percentage of different
pixels in the entire image }
- getPixelColor(pathToImage, x, y) - it returns [R, G, B] color of any specific pixel for the provided image
- getColorsArrayFromImage(pathToImage) - it returns a sorted array of all [R, G, B] colors of any specific provided
image
- getColorsAndPixelsArrayFromImage(pathToImage) - it returns a sorted array of objects like {'color': ..., 'pixels':
..., 'percent': ... } of any specific provided image.
- getTopFiveColors(pathToImage) - it returns the first five colors sorted by number of related pixels
- replaceRectangles(inputPath, outputPath, rectangles, color) - it will replace any rectangles on the image by
provided color
- https://www.youtube.com/live/pGJtJyPtiHw?si=B_gX51bKSIXWYRYF
https://forms.gle/GZbS9hw42tSYJxKL7