Code Monkey home page Code Monkey logo

Comments (5)

baptistecs avatar baptistecs commented on June 10, 2024

I added this in package.json:

"trustedDependencies": ["sharp"],

And optionally this:

  "resolutions": {
    "minipass": "2.7.0"
  },

And I tried:

rm -rf node_modules
rm -rf bun.lockb
bun install --no-cache --verbose --platform=darwin --arch=x64

But I get the same result 😫

from sharp.

lovell avatar lovell commented on June 10, 2024

Support for Bun was added in sharp v0.33.0.

I can't use the last version because... Homebrew won't install Vips version ^8.15

You don't need a globally-installed libvips - use brew uninstall vips then upgrade sharp.

from sharp.

baptistecs avatar baptistecs commented on June 10, 2024

Support for Bun was added in sharp v0.33.0.

Thanks a lot for the quick answer! :)

You don't need a globally-installed libvips - use brew uninstall vips then upgrade sharp.

I think I need libvips to convert .heic files? So far I get this:

Read error: source: bad seek to 3024940
heif: Unsupported feature: Unsupported codec (4.3000)
                                                            ^
TypeError: undefined is not an object (evaluating 'error.stack')
      at /Users/UN/work/PN/src/server.ts:186:145
      at processTicksAndRejections (:61:77)

from sharp.

lovell avatar lovell commented on June 10, 2024

The prebuilt binaries provided by sharp do not support HEVC/HEIC images.

MacPorts provides vips 8.15.1 https://ports.macports.org/port/vips/

from sharp.

baptistecs avatar baptistecs commented on June 10, 2024

Published 6h ago, great timing!

The installation went fine, but unfortunately, I can't test it ATM because I broke something with Bun, when I run bun install I get error: failed to initialize compression stream downloading package manifest for all the project packages (it worked fine before I started to play with HomeBrew / MacPorts / Vips build.

I close this issue for now, I will reopen if needed, thank you! :)

from sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.