get-image-colors
get-image-colors copied to clipboard
Unable to perform get image on images of file size more than 4mb.
I was trying to fetch colours of images that are more than 4 mb (aprox). The library gets stuck and does not respond. We finally have to restart the server once this happens.
More Context:
- We're using this library on our server side to fetch colour of images uploaded.
- It works like a charm on my local system even for images as big as 20-25mb.
- However, When running on the live server, once an image more than 4 mb is given, the library crashes.
- Our server is on AWS, It's an EC2 instance with 2 cores and 1 gb of ram (T4g micro).
Because this works fine on my local, does it have to do something with the heap size on the server? Is there a possible way to configure my node server to allow more memory (If that is the issue) ?