Coder Social home page Coder Social logo

imazen / imageflow-node Goto Github PK

View Code? Open in Web Editor NEW
87.0 87.0 4.0 2.5 MB

An Image manipulation Library for Nodejs. Based on https://github.com/imazen/imageflow

Home Page: https://imazen.github.io/imageflow-node

License: GNU Affero General Public License v3.0

JavaScript 12.09% Rust 35.23% TypeScript 52.68%
image-processing imageflow linux macos napi nodejs rust server windows

imageflow-node's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

imageflow-node's Issues

Question: Where to add the Licence

Hi,

we want to use this package in production and wonder a bit where we have to add the licence key. Can you give me the information?

Thanks!

Allow bgcolor for transparent png to jpg

Hello,
Thanks for your work, we testing the imageflow-node since few days and seems the default background color for replacing transparency is still black.
On the imageflow repository, this have already been fixed ( imazen/imageflow#175 ) to permit to choose a bgcolor, and to have white color by default, is it possible to do the same with the node package please?

Add support for backgroundColor to ConstraintHints

background_color/backgroundColor is missing

pub struct ResampleHints {
    pub sharpen_percent: Option<f32>,
    pub down_filter: Option<Filter>,
    pub up_filter: Option<Filter>,
    pub scaling_colorspace: Option<ScalingFloatspace>,
    pub background_color: Option<Color>,
    pub resample_when: Option<ResampleWhen>,
    pub sharpen_when: Option<SharpenWhen>
}
    private readonly sharpenPercent: number
    private downFilter: Filter | null
    private upFilter: Filter | null
    private scalingColorSpace: ScalingFloatspace | null
    private resampleWhen: ResampleWhen | null
    private sharpenWhen: SharpenWhen | null

Can not import the module

Hi

When I'm trying to load the module I get the next error

$ node
> const imageflow = require('@imazen/imageflow')
Uncaught:
Error: Cannot find module '/app/node_modules/@imazen/imageflow/dist/index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:329:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:690:18)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1017:27)
    at Function.Module._load (internal/modules/cjs/loader.js:899:27)
    at Module.require (internal/modules/cjs/loader.js:1090:19)
    at require (internal/modules/cjs/helpers.js:75:18) {
  code: 'MODULE_NOT_FOUND',
  path: '/app/node_modules/@imazen/imageflow/package.json',
  requestPath: '@imazen/imageflow'

I'm using Ubuntu 18.04 Docker container with prebuilt library (downloaded from here https://github.com/imazen/imageflow/releases)

And installed nodejs 14.5.0

Is there something I'm doing wrong or is it the module issue?

Thanks,
Oleksii

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.