Skip to main content

Questions tagged [sharp]

Questions about sharp, a Node.js image processing library to resize, crop and optimize JPEG, PNG, WebP and TIFF images.

0 votes
0 answers
7 views

Fixing a local markdown image reference in AstroJS?

I have this folder structure in my astroJS project, where I seperate each blog content by an YYYYMMDD name prefix pages blogs 20220505 index.md img/pikachu.png 20230401 ...
Vincent Tang's user avatar
  • 4,020
0 votes
0 answers
24 views

Slow lambda run times when using SharpJS

I have an AWS Object Lambda in Node 20.x that uses SharpJS to watermark and reduce an image size upon GET requests. Code looks like this: export const handler = async (event) => { const start = ...
Justin Sumida's user avatar
1 vote
0 answers
42 views

Problem Deploying to Vercel using Plaiceholder, Sharp and NextJS 14

I wanted to blur my dynamic images that is already using Image component by NextJS 14.0.3. Locally everything is fine. But when I try to deploy it on Vercel. It throws corrupted size vs. prev_size ...
Re9iNee's user avatar
  • 526
0 votes
0 answers
13 views

SharpJS: Resizing image with large number of frames taking very long time to process even though frame size is low

I'm using SharpJS to resize a gif/webp image having large number of frames, but I'm experiencing slow performance even though the frame size is 7kb, 15kb or 20kb and target frame dimension is 512x512. ...
CrackerKSR's user avatar
  • 1,605
0 votes
0 answers
45 views

having a problem with sharp js when runing server

I'm getting the following error message when trying to run my server: internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module 'node:util' Require stack: - /Users/ahmedm.fawzy/...
yosof fawzy's user avatar
0 votes
0 answers
64 views

Docker sharp installation error on M3 Macbook

I'm having problems with a Docker project, which started correctly on my old Intel Macbook Pro. Basically I have a backend service developed with Node 14.15.1 on 4 different containers. As you can ...
Fabio Paccosi's user avatar
0 votes
0 answers
42 views

How to calculate Sharp ratio in strategy?

I want to calculate the sharp ratio, but did'nt find exact method. I found something below in manual of pinescript, but don't understand how to calculate standard deviation right. The formula for the ...
Sam Mayilyan's user avatar
0 votes
1 answer
133 views

How to composite a static background image and gif with sharp nodejs package

It seems that no matter how much you look online for compositing a still background image (like png or jpeg) with a gif there are no complete solutions. Overlaying a gif on a still background seems to ...
Sharp Dev's user avatar
  • 910
0 votes
1 answer
125 views

Using node js sharp package composite function is not giving an animated result

I have created a simple program using discord.js, what I want is to combine a still image with an image containing animated frames, then the bot will send the result of the animated image and the ...
AchrafOu's user avatar
0 votes
0 answers
29 views

Efficient Image Processing and Storage for Web and App Assets Using Sharp and AWS

I am creating an API. In which I am storing marketplace data web images and app images. So what I want to do is that I want to reduce the size of the image and then convert that image into webp. and ...
suraj karosia's user avatar
-1 votes
1 answer
52 views

Ignite Boilerplate Npx command : Something went wrong installing the "sharp" module

I was trying to init a repo with the ignite boilerplate but I am facing this issue npx ignite-cli@latest new PizzaApp /Users/matthys/.npm/_npx/bec2839915ba8fc3/node_modules/gluegun/build/index.js:15 ...
Matthys Ducrocq's user avatar
0 votes
1 answer
49 views

How to detect the number of disconnected regions in a PNG using Javascript? [closed]

How to detect that there are (for example) 3 disconnected regions within the PNG below? Is there a technique or library someone could kindly refer me to? Not sure how to even start with this one. I'm ...
Sol's user avatar
  • 55
0 votes
1 answer
43 views

Nodejs - Sharp merged image buffer is corrupted

My use cases requires me to merge two image buffers and upload it to s3 signed url in every api call. FLow: const image1 = getImage() // from remote server (base64 encoded) const image2 = getImage() //...
akash Anand's user avatar
0 votes
0 answers
139 views

Stuck in: npm ERR! Cannot read properties of null (reading 'edgesOut')

I am stuck in installing a library sharp with the command npm install sharp Every time I try a proposed solution on other forums it pretty much says the same thing of "npm ERR! Cannot read ...
user23832500's user avatar
1 vote
0 answers
18 views

Fetch min valuable bytes of a file to get image dimensions with sharp

I have many images in the cloud and need to get their dimensions. For this purpose, I decided to use sharp#metadata. What minimum valuable bites do I need to fetch of a file to get this information? ...
Pavlo Naumenko's user avatar

15 30 50 per page
1
2 3 4 5
32