jimp-dev/jimp

jimp.read is failing silently in a grunt task

オープン

#852 opened on 2020/03/09

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (785 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (13,218 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Expected Behavior

When you call jimp.read, then jimp.read.then or jimp.read.catch are called.

Current Behavior

If jimp.read is called in a grunt task, then neither jimp.read.then or jimp.read.catch are called. If you call jimp.read in the node repl or in a node script, it works normally.

$ node
Welcome to Node.js v13.7.0.
Type ".help" for more information.
> var test = require( './test' );
undefined
> test();
attempting resize
running resize task
Promise { undefined }
> jimp.read success
image processing success!
received buffer, great news!

> 
(To exit, press ^C again or ^D or type .exit)
> 
$ grunt test
Running "test" task
Resizing
attempting resize
running resize task

Done.
$ 

Failure Information (for bugs)

See above.

Steps to Reproduce

$ git clone https://github.com/mattpen/jimp-grunt-test.git $ cd jimp-grunt-test $ npm install $ grunt test

Screenshots

N/A, either an image is generated or it isn't.

Context

  • Jimp Version: 0.9.5
  • Operating System: MacOS 10.14.6
  • Node version: 13.7.0

Failure Logs

No log output was produced by jimp.

コントリビューターガイド