Giter Site home page Giter Site logo

imagemagick-prebuilt's Introduction

ImageMagick Prebuilt

Install Node Package

npm install --save imagemagick-prebuilt

Install ImageMagick within NodeJS

var imagemagick_prebuilt = require( 'imagemagick-prebuilt' );

var child_process = require( 'child_process' );

exports.handler = function( event, context ) {
    imagemagick_prebuilt()
        .then( function( imagemagick_bin_location ) {
            // ImageMagick logo creation test:
            // convert logo: logo.gif
            var convert_process = child_process
                .spawn( imagemagick_bin_location, [ 'logo:', 'logo.gif' ] )

            convert_process
                .on( 'close', function() {
                    context.success();
                } );
        } );
};

Or with q.async

var imagemagick_prebuilt = require( 'imagemagick-prebuilt' );

var child_process = require( 'child_process' );

exports.handler = function( event, context ) {
    return q
        .async( function *() {
            imagemagick_bin_location = yield imagemagick_prebuilt();
            console.log( `ImageMagick installed: ${imagemagick_bin_location}` );

            // ImageMagick logo creation test:
            // convert logo: logo.gif
            var convert_process = child_process
                .spawn( imagemagick_bin_location, [ 'logo:', 'logo.gif' ] )

            convert_process
                .on( 'close', function() {
                    context.success();
                } );
        } )();
};

Will be installed to /tmp/imagemagick

Build/Upload new version

./build.sh

Build is output to artifacts/imagemagick-prebuilt.tar.gz

./upload.sh ${version_number}

imagemagick-prebuilt's People

Contributors

frenchie4111 avatar alexbrandes avatar rileygelwicks avatar

Stargazers

Chris Love avatar  avatar Patrick McKenzie avatar Letra Studio avatar Jeff Orr avatar Neverlock avatar Bobby Azarbayejani avatar Dimitry avatar Tom Norian avatar

Watchers

James Cloos avatar Kruk avatar  avatar Gregg Golembeski avatar  avatar  avatar day kay avatar Trini  avatar João Carvalho avatar  avatar

imagemagick-prebuilt's Issues

Build Imagemagick shared libs

I'm trying to get a custom version of ImageMagick onto AWS lambda that will work with Wand Python

How can I use this repo to get .so files from ImageMagick that work

Everything I've attempted always returns this error when trying to use the compiled .so files:

libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory

Text overlayed on Image is pixelated.

Hi,

I'm using this version of ImageMagick on Lambda and text added over an image is pixelated.
Do we need to add any additional package to avoid that?

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.