Coder Social home page Coder Social logo

Comments (7)

anija avatar anija commented on July 24, 2024 9

Solved! I was finally able tu build with freetype enabled.
Here's the Layer .zip to be uplaoded on AWS ;)
Archivio.zip

from imagemagick-aws-lambda-2.

bruno-smaldone avatar bruno-smaldone commented on July 24, 2024 1

@anija - This one worked for me, thank you very much for sharing it, you saved me a ton of work

from imagemagick-aws-lambda-2.

anija avatar anija commented on July 24, 2024

I've the same problem: everything is fine, resize and other functions works fine, but the drawText just don't work and doesn't raise any error/warning.

from imagemagick-aws-lambda-2.

anija avatar anija commented on July 24, 2024

Here's the solution: #6

from imagemagick-aws-lambda-2.

anija avatar anija commented on July 24, 2024

The compiled build in #6 is not working for me (buffer is always empty).
I've tried to build the library from 0, without changing anything from the repo, and the result is the same: buffer is always empty. I'm building with MacOs.

Any chance to get a precompiled and working layer zip with freetype?

from imagemagick-aws-lambda-2.

charlie-s avatar charlie-s commented on July 24, 2024

@anija Any chance we can get a hand with this? Uploaded Archivio.zip as a new layer, linked the layer to our simple Lambda function, and now code that worked with imagemagick-aws-lambda-2 is no longer working – produces Stream yields empty buffer output.

Here's our Lambda function with the extraneous bits removed, but this is the exact gm() call that we're making with this new layer:

const gm = require('gm').subClass({ imageMagick: true });
...
gm(path.join(__dirname, '/file.jpg'))
    .toBuffer('jpeg', (err, buffer) => {
        if (err) return console.error(err); <-- this throws.
        console.log(buffer)
    });

Is there anything else we need to do to use / link this layer and its binaries properly?

from imagemagick-aws-lambda-2.

jfederer avatar jfederer commented on July 24, 2024

@anija I'm not following. The .zip that you posted appears to be HarfBuzz OpenType text engine.

How does this work with imagemagick?

from imagemagick-aws-lambda-2.

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.