GithubHelp home page GithubHelp logo

Comments (6)

lovell avatar lovell commented on May 28, 2024

Did you see https://github.com/zoellner/sharp-heic-lambda-layer ?

from sharp.

Cruaier avatar Cruaier commented on May 28, 2024

Thanks for the prompt answer. It was just updated using the latest versions...I'll try it out; even though the compile steps are very similar to mine. Will update this ticket when I confirm it works.

from sharp.

Cruaier avatar Cruaier commented on May 28, 2024

Unfortunately, the Lambda layer from the other project seems not to work. The error I am getting is below.

{
  "errorType": "Error",
  "errorMessage": "Input buffer contains unsupported image format",
  "trace": [
    "Error: Input buffer contains unsupported image format",
    "    at Sharp.metadata (/opt/nodejs/node_modules/sharp/lib/input.js:486:17)",
    "    at getFileMetadata (/var/task/index.js:1351:40)",
    "    at Runtime.handler (/var/task/index.js:1377:26)",
    "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
  ]
}

I created a ticket there (zoellner/sharp-heic-lambda-layer#30); maybe the issue with building both Lambda layers is related.

from sharp.

zoellner avatar zoellner commented on May 28, 2024

Is there any documentation on which exact files are needed at runtime after the compilation from source is done?

from sharp.

lovell avatar lovell commented on May 28, 2024

@zoellner You can use ldd to list the shared libraries required by a compiled binary, e.g.:

$ ldd node_modules/sharp/src/build/Release/sharp-linux-x64.node

from sharp.

Cruaier avatar Cruaier commented on May 28, 2024

@lovell got it fixed. The issue for me was related to a wrong preset during the libheif compilation. Code is available here: https://github.com/Dobe-Solutions/sharp-heif-lambda-layer

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.