sharp Questions

1

Solved

When attempting to run Expo for web I get the error "Failed to find the instance of sharp used by the global sharp-cli package" after creating a file namedwebpack.config.js in the root of...
Capel asked 5/12, 2021 at 18:22

2

I'm trying to create an AWS Lambda function to apply a watermarking effect on images. The original image will be pulled from S3, the watermarks applied and the results uploaded back to S3. I'm usin...
Effulgence asked 30/7, 2020 at 9:6

0

When calling the .toBuffer() method on a sharp object, I get the following error: Input buffer contains unsupported image format I'm fetching an image from S3, and I am certain its retrieved as a ...
Cremator asked 16/11, 2021 at 22:50

3

I want to resize and compress images using sharp in node.js In sharp for jpeg there is separate compression and for webp there is separate and for png there is separate. WEBP sharp('a.jpg') .res...

2

Solved

I executed npm install on gatsby js directory on Mac. macOs is Big Sur Version is 11.4. gatsby version is 3.11.0 gatsby-plugin-sharp version is 3.11.0 this error log is shown. npm ERR! code 1...
Doubleton asked 9/8, 2021 at 10:9

2

Solved

I have a image and i put watermark there, but i want that watermark hs a opacity like 30%. My code: let sharp = require('sharp'); let buffer = null; await sharp(image) .composite([{ input: '...
Jahveh asked 23/7, 2019 at 19:31

3

I am trying to install sharp on Ubuntu 16.04 LTS. I originally did not have vips, so I installed sudo apt-get install libvips-dev That fixed the first error, but now I get another error that ...
Gehenna asked 27/10, 2018 at 13:34

3

Solved

I'm trying to use Next.js on my corporate system, but whenever I run "npm run build", the build fails with the message: Error: Cannot find module 'sharp' I tried installing sharp but I ge...
Heartsease asked 25/1, 2021 at 23:48

2

Solved

I download the image through request, and then process the image through sharp. But there is an error that input file is missing, actually the variable body has a value. import { IADLandingPageABT...
Gregarine asked 10/3, 2020 at 8:6

2

Solved

Here is a codesandbox I would like the image in it to be processed by the sharp module. I want it to do this because I want this module to web optimize all the images in my React project, and to co...
Folse asked 10/5, 2021 at 19:53

2

Solved

I'm developing a similar service of Imgix and I'm using Sharp. But the webp lossless compression Imgix get better results than Sharp. The same image with the same width and height in Imgix have 45...
Ganoid asked 1/3, 2019 at 23:29

1

Solved

I need to use sharp. Its work fine on my workspace but if I deploymeny via docker then I get error. I am implementation all steps. Error: 'linux-x64' binaries cannot be used on the 'linuxmusl-x64' ...
Astrology asked 9/1, 2021 at 19:3

1

When running webpack I have received this error "WARNING in ./node_modules/sharp/build/Release/sharp.node 1: 0 Module parse failed: Unexpected character '' (1: 0) You may need an appropriate l...
Annabelleannabergite asked 19/8, 2020 at 2:8

2

Solved

I'm using sharp to resize an uploaded image in a Node.js / Express application written in Typescript. After successful resizing, I'd like to delete the original file. For png and gif input images, ...
Eel asked 22/12, 2016 at 17:55

1

Solved

I'm working in an environment where the available image processing library is NodeJS's Sharp for scaling images. It has been stable as it is being pipe based, but I'm tasked with converting it into...
Jerryjerrybuild asked 13/5, 2020 at 15:29

1

I typically have frontmatter that will have an array of objects, inside each object will be an image which will reference a string of a file relative to the markdown file. The problem is, the arra...
Erewhile asked 19/2, 2020 at 15:43

0

'win32-x64' binaries cannot be used on the 'linux-x64' platform got this error while installing node sharp on windows system. This is breaking my lambda code on aws while execution.
Resinate asked 26/12, 2019 at 10:15

1

I am not able to install package Cordova-res in ionic 5.4.4v and getting the error below **Z:\my program V2\ionicTest\testProj>npm i -g cordova-res** C:\Users\USER\AppData\Roaming\npm\cordova-...
Samella asked 24/10, 2019 at 10:52

0

While working on performance testing for a Node Project, I came across some memory reports which are a bit confusing to interpret in terms of performance and memory leaks. Background So I generat...
Forb asked 24/9, 2019 at 10:50

1

Solved

After scaling and coloring a JPG with Sharp, I immediately delete the input file. When I upload a new file with the same name, Sharp will output the old file. I'm running NodeJS on Ubuntu 16.04. H...
Hoe asked 17/7, 2019 at 9:37

1

I try to run expo optimize and it says it requires sharp-cli. So I install sharp-cli as it directs. And then it gives me the same error. (first step described above is left out) $ npm install -...
Lohner asked 10/7, 2019 at 21:51

1

Solved

What I am trying to do is download an image from google into my system repository in the project folder /download. Next, I am trying to get the image from the download repository and resize and aga...
Epergne asked 26/6, 2019 at 4:7

2

I'm trying to downsample an image in node. I have that image stored as a base64 encoded string (ie: "data:image/png;base64,iVBOR" etc.). I'm using Sharp npm package. The documentation appears to de...
Doolittle asked 24/4, 2017 at 15:30

2

I am resizing a given image (saved on disk) to different sizes: var image = 'photos/pic'; var sizes = [1440, 1080, 720, 480]; for (var i = 0; i < sizes.length; i++) { sharp(image + '.jpg') .r...
Hendricks asked 30/4, 2017 at 8:32

© 2022 - 2024 — McMap. All rights reserved.