get-image-colors icon indicating copy to clipboard operation
get-image-colors copied to clipboard

Unable to perform get image on images of file size more than 4mb.

Open raghav-binary opened this issue 3 years ago • 0 comments

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:

  1. We're using this library on our server side to fetch colour of images uploaded.
  2. It works like a charm on my local system even for images as big as 20-25mb.
  3. However, When running on the live server, once an image more than 4 mb is given, the library crashes.
  4. 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) ?

raghav-binary avatar Dec 05 '21 08:12 raghav-binary