GithubHelp home page GithubHelp logo

jimp-dev / pngjs3 Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 6.0 16.68 MB

Simple PNG encoder/decoder for Node.js and browsers with no dependencies.

License: Other

JavaScript 75.30% HTML 24.70%
png-decoder javascript-library pngjs

pngjs3's Introduction

Build Status Build status npm version NPM downloads

pngjs3

Simple PNG encoder/decoder for Node.js and browsers with no dependencies.

A fork from pngjs. The package is prepared for the browser and there are some changes in the exports. The pngjs has been extended with the following enhancements:

  • skipRescale that allows retrieval of 16-bit data if input was 16-bit
  • grayscaleData for retrieving the grayscale bitmap (note ignores alpha channel and caches the grayscale conversion†)
  • propData for retrieving the proportional values (note ignores alpha channel and caches the proportional conversion†)

† If you manipulate the data property of the object directly the conversions will not be recalculated due to the cache.

The pngjs had the follow enhancements compared to the original:

  • Support for reading 1, 2, 4 & 16 bit files
  • Support for reading interlace files
  • Support for reading tTRNS transparent colours
  • Support for writing colortype 0 (grayscale), colortype 2 (RGB), colortype 4 (grayscale alpha) and colortype 6 (RGBA)
  • Sync interface as well as async
  • API compatible with pngjs and node-pngjs

Known lack of support for:

  • Extended PNG e.g. Animation
  • Writing in colortype 3 (indexed color)

Table of Contents

Requirements

  • Node.js v10 or later

Comparison Table

Name Forked From Sync Async 16 Bit 1/2/4 Bit Interlace Gamma Encodes Tested
pngjs3 pngjs Yes Yes Yes Yes Yes Yes Yes Yes
pngjs Yes Yes Yes Yes Yes Yes Yes Yes
node-png pngjs No Yes No No No Hidden Yes Manual
png-coder pngjs No Yes Yes No No Hidden Yes Manual
pngparse No Yes No Yes No No No Yes
pngparse-sync pngparse Yes No No Yes No No No Yes
png-async No Yes No No No No Yes Yes
png-js No Yes No No No No No No

Native C++ node decoders:

  • png
  • png-sync (sync version of above)
  • pixel-png
  • png-img

Tests

Tested using PNG Suite. We read every file into pngjs, output it in standard 8bit colour, synchronously and asynchronously, then compare the original with the newly saved images.

To run the tests, fetch the repo (tests are not distributed via npm) and install with npm i, run npm test.

The only thing not converted is gamma correction - this is because multiple vendors will do gamma correction differently, so the tests will have different results on different browsers.

Installation

$ npm install pngjs3  --save

or with yarn

$ yarn add pngjs3

Browser

The package has been build with browser support using browserify-zlib instead of NodeJS' zlib.

Example

import fs from 'fs';
import PNG from 'pngjs3';

fs.createReadStream('in.png')
  .pipe(
    new PNG({
      filterType: 4,
    }),
  )
  .on('parsed', function () {
    for (var y = 0; y < this.height; y++) {
      for (var x = 0; x < this.width; x++) {
        var idx = (this.width * y + x) << 2;

        // invert color
        this.data[idx] = 255 - this.data[idx];
        this.data[idx + 1] = 255 - this.data[idx + 1];
        this.data[idx + 2] = 255 - this.data[idx + 2];

        // and reduce opacity
        this.data[idx + 3] = this.data[idx + 3] >> 1;
      }
    }

    this.pack().pipe(fs.createWriteStream('out.png'));
  });

For more examples see examples folder.

Async API

As input any color type is accepted (grayscale, rgb, palette, grayscale with alpha, rgb with alpha) with 8 & 16 bit per sample (channel) are the supported bit depths. Interlaced mode is not supported.

Class: PNG

PNG is a readable and writable Stream.

Options

  • id - An optional identifier can be provided if you want to be able to track this object in memory.
  • width - use this with height if you want to create png from scratch.
  • height - as above.
  • checkCRC - whether parser should be strict about checksums in source stream (default: true).
  • deflateChunkSize - chunk size used for deflating data chunks, this should be power of 2 and must not be less than 256 and more than 32*1024 (default: 32 kB).
  • deflateLevel - compression level for deflate (default: 9).
  • deflateStrategy - compression strategy for deflate (default: 3).
  • deflateFactory - deflate stream factory (default: zlib.createDeflate).
  • filterType - png filtering method for scanlines (default: -1 => auto, accepts array of numbers 0-4).
  • colorType - the output colorType - see constants. 0 = grayscale, no alpha, 2 = color, no alpha, 4 = grayscale & alpha, 6 = color & alpha. Default currently 6, but in the future may calculate best mode.
  • inputColorType - the input colorType - see constants. Default is 6 (RGBA).
  • bitDepth - the bitDepth of the output, 8 or 16 bits. Input data is expected to have this bit depth. 16 bit data is expected in the system endianness (Default: 8).
  • inputHasAlpha - whether the input bitmap has 4 bytes per pixel (rgb and alpha) or 3 (rgb - no alpha).
  • bgColor - an object containing red, green, and blue values between 0 and 255. that is used when packing a PNG if alpha is not to be included (default: 255,255,255).
  • skipRescale - set to true if you want to skip the rescaling to 8-bit bitmap. This is good if you wish to retain a 16-bit bitmap datastructure.
  • initGrayscaleData - if you want to initialize the grayscale conversion of the RGBA data for the grayscaleData call †.
  • initPropData - boolean or an object with the arguments to initPropData for initializing the propData †.

† These functions are useful if you wish to do repeated manipulations to the image and as image manipulation is time consuming it is beneficial to initiate the data from start.

Event "metadata"

function(metadata) { } Image's header has been parsed, metadata contains this information:

  • width image size in pixels
  • height image size in pixels
  • palette image is paletted
  • color image is not grayscale
  • alpha image contains alpha channel
  • interlace image is interlaced

Event: "parsed"

function(data) { } Input image has been completely parsed, data is complete and ready for modification.

Event: "error"

function(error) { }

png.parse(data, [callback])

Parses PNG file data. Can be String or Buffer. Alternatively you can stream data to instance of PNG.

Optional callback is once called on error or parsed. The callback gets two arguments (err, data).

Returns this for method chaining.

Example

new PNG({ filterType: 4 }).parse(imageData, function (error, data) {
  console.log(error, data);
});

png.pack()

Starts converting data to PNG file Stream.

Returns this for method chaining.

png.destroy()

Calling destroy() is entirely optional but browser memory management is both tricky and important, this is especially important here as images are take up a lot of space. The problem is also due to that the async procedures associated with the class can cause unwanted side-effects such memory leaks as we expect the object to have been deleted together with a DOM-node. The call tries to clear all the ArrayBuffers both own buffers and other sub-buffers that can be problematic.

bitblt({ dst, srcX, srcY, width, height, deltaX, deltaY })

Helper for image manipulation, copies a rectangle of pixels from current (i.e. the source) image (srcX, srcY, width, height) to dst image (at deltaX, deltaY).

Returns this for method chaining.

For example, the following code copies the top-left 100x50 px of in.png into dst and writes it to out.png:

const dst = new PNG({ width: 100, height: 50 });
fs.createReadStream('in.png')
  .pipe(new PNG())
  .on('parsed', function () {
    this.bitblt({
      dst,
      srcX: 0,
      srcY: 0,
      width: 100,
      height: 150,
      deltaX: 0,
      deltaY: 0,
    });
    dst.pack().pipe(fs.createWriteStream('out.png'));
  });

Not that the package exports bitblt that takes the additionalargument src;

Property: adjustGamma()

Helper that takes data and adjusts it to be gamma corrected. Note that it is not 100% reliable with transparent colours because that requires knowing the background colour the bitmap is rendered on to.

In tests against PNG suite it compared 100% with chrome on all 8 bit and below images. On IE there were some differences.

The following example reads a file, adjusts the gamma (which sets the gamma to 0) and writes it out again, effectively removing any gamma correction from the image.

fs.createReadStream('in.png')
  .pipe(new PNG())
  .on('parsed', function () {
    this.adjustGamma();
    this.pack().pipe(fs.createWriteStream('out.png'));
  });

Property: width

Width of image in pixels

Property: height

Height of image in pixels

Property: shape

Object with height and width

Property: data

Buffer of image pixel data. Every pixel consists 4 bytes: R, G, B, A (opacity).

Property: gamma

Gamma of image (0 if not specified)

Serializing and deserializing

When using libraries suchs as Redux it is "highly recommended that you only put plain serializable objects, arrays, and primitives into your store". For this purpose PNGJS has implemented the serialize() and static deserialize() methods.

import PNG from 'pngjs3';

myPNG = new PNG();
...

const data2store = myPNG.serialize();
...

const myRecreatedObject = PNG.deserialize(data2store);

// Note that:
console.log(myRecreatedObject !== myPNG, 'A new object has been created');
console.log(myRecreatedObject.storage === myPNG.storage, 'But the storage (i.e. data) is the same');

Immutability

The storage in the PNG-object is immutable through immer. This means that any changes to the storage will propagate from subitem to the top item. This allows for efficient comparison store === prevStore.

Packing a PNG and removing alpha (RGBA to RGB)

When removing the alpha channel from an image, there needs to be a background color to correctly convert each pixel's transparency to the appropriate RGB value. By default, pngjs will flatten the image against a white background. You can override this in the options:

import fs from 'fs';
import PNG from 'pngjs3';

fs.createReadStream('in.png')
  .pipe(
    new PNG({
      colorType: 2,
      bgColor: {
        red: 0,
        green: 255,
        blue: 0,
      },
    }),
  )
  .on('parsed', function () {
    this.pack().pipe(fs.createWriteStream('out.png'));
  });

Sync API

read(buffer)

Take a buffer and returns a PNG image. The properties on the image include the meta data and data as per the async API above.

import { sync as PNGSync } from 'pngjs3';

const data = fs.readFileSync('in.png');
const png = PNGSync.read(data);

write(png)

Take a PNG image and returns a buffer. The properties on the image include the meta data and data as per the async API above.

import { sync as PNGSync } from 'pngjs3';

const data = fs.readFileSync('in.png');
const png = PNGSync.read(data);
const options = { colorType: 6 };
const buffer = PNGSync.write(png, options);
fs.writeFileSync('out.png', buffer);

Adjust Gamma

Adjusts the gamma of a sync image. See the async adjustGamma.

import { adjustGamma } from 'pngjs3';

const data = fs.readFileSync('in.png');
const png = PNGSync.read(data);
adjustGamma(png);

Changelog

--> 6.1.1 - 19/06/2023

  • Update package dependencies
  • Fixed bad es6 reference
  • Node support updated to 18 (but no changes in code that should break older versions)

--> 6.1.0 - 30/10/2020

  • Added optional ID for easier tracking the object in memory
  • Added destroy() to PNG class. Browser memory management could potentially be problematic as the async procedures associated with the class can cause unwanted side-effects such memory leaks as we expect the object to have been deleted together with a DOM-node.

--> 6.0.0 - 28/10/2020

  • BREAKING - Sync version now throws if there is unexpected content at the end of the stream.
  • BREAKING - Drop support for node 10 (Though nothing incompatible in this release yet)

--> 5.1.10 - 21/07/2020

  • Update package dependencies
  • Fixed rollup issues
  • Removed circular dependency

--> 5.1.9 - 25/05/2020

  • Update package dependencies
  • Added changes implemented in original pngjs

--> 5.1.7 - 05/04/2020

  • Update package dependencies
  • Converted Buffer() to Buffer.from & Buffer.alloc
  • Drop support for Node v8

--> 5.1.5 - 25/08/2019

  • Update package dependencies

5.1.0 - 07/05/2019

  • Implemented immutable store (setters and getters should allow for the same functionality as before) - issue #49
  • There is a shape attribute with the width and the height
  • For storage you can now use serialize() and static deserialize()

5.0.4 - 04/05/2019

5.0.3 - 23/04/2019

  • Homepage url + package updates

5.0.2 - 17/04/2019

  • Updated packages

5.0.1 - 02/12/2019

  • Updated packages

5.0.0 - 01/01/2019

  • BREAKING: The sync is exported as sync and no longer a static member of the PNG-class
  • Default export is now the PNG class
  • Separate export for adjustGamma, bitblt and sync
  • The bitblt now expects an object as argument due to too many arguments
  • Updated the README to match the new structure

4.0.0 - 03/08/2018

  • Change to browserify-zlib (causes one async test case to fail :-()

3.6.2 - 03/08/2018

  • Change to rollup - now includes es6 module, umd and cjs
  • Package updates
  • Fixes to buggy flow interface

3.5.0 - 17/01/2018

  • Added propData2ImageClamped for copying propData into Uint8ClampedArray

3.4.2 - 8/01/2018

  • Fixed bug in propData
  • Changed min/max value search to for loop with break

3.4.1 - 7/01/2018

  • Fixed bug in grayscaleData for rgb
  • Fixed Flow typings with all the sub-elements

3.4.0 - 22/12/2017

  • Fork to pngjs3
  • Added browserify for browser loading
  • Added propData and grayscaleData
  • Added Flow typings

3.3.1 - 15/11/2017

  • Bugfixes and removal of es6

3.3.1 - 15/11/2017

  • Bugfixes and removal of es6

3.3.0

  • Add writing 16 bit channels and support for grayscale input

3.2.0 - 30/04/2017

  • Support for encoding 8-bit grayscale images

3.1.0 - 30/04/2017

  • Support for pngs with zlib chunks that are malformed after valid data

3.0.1 - 16/02/2017

  • Fix single pixel pngs

3.0.0 - 03/08/2016

  • Drop support for node below v4 and iojs. Pin to 2.3.0 to use with old, unsupported or patched node versions.

2.3.0 - 22/04/2016

  • Support for sync in node 0.10

2.2.0 - 04/12/2015

  • Add sync write api
  • Fix newfile example
  • Correct comparison table

2.1.0 - 28/10/2015

  • rename package to pngjs
  • added 'bgColor' option

2.0.0 - 08/10/2015

  • fixes to readme
  • breaking change - bitblt on the png prototype now doesn't take a unused, unnecessary src first argument

1.2.0 - 13/09/2015

  • support passing colorType to write PNG's and writing bitmaps without alpha information

1.1.0 - 07/09/2015

  • support passing a deflate factory for controlled compression

1.0.2 - 22/08/2015

  • Expose all PNG creation info

1.0.1 - 21/08/2015

  • Fix non square interlaced files

1.0.0 - 08/08/2015

  • More tests
  • source linted
  • maintainability refactorings
  • async API - exceptions in reading now emit warnings
  • documentation improvement - sync api now documented, adjustGamma documented
  • breaking change - gamma chunk is now written. previously a read then write would destroy gamma information, now it is persisted.

0.0.3 - 03/08/2015

  • Error handling fixes
  • ignore files for smaller npm footprint

0.0.2 - 02/08/2015

  • Bugfixes to interlacing, support for transparent colours

0.0.1 - 02/08/2015

  • Initial release, see pngjs for older changelog.

License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

pngjs3's People

Contributors

dependabot[bot] avatar gforge avatar greenkeeper[bot] avatar liamdon avatar

Stargazers

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

Watchers

 avatar  avatar

pngjs3's Issues

pngjs3.js:6925 typeError: Cannot read property 'interlace' of undefined

index.js:16 TypeError: Cannot read property 'interlace' of undefined
    at parse (pngjs3.js:6925)
    at Object.read (pngjs3.js:7280)

Throws from:
https://github.com/gforge/pngjs3/blob/master/lib/parser/parser-sync.js#L69

I'm not sure what metadata is supposed to be. Maybe this should guard

if(metadata && metatdata.interlaced)

I'm loading a png as an arraybuffer using webpack arraybuffer-loader. Passes an ArrayBuffer to the sync method.

import { PNG } from 'pngjs';
import arrayBuffer from './static/peppers.png';
const pepperPng = PNG.sync.read(arrayBuffer);

An in-range update of eslint-plugin-flowtype is breaking the build 🚨

The devDependency eslint-plugin-flowtype was updated from 3.9.0 to 3.9.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-flowtype is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v3.9.1

3.9.1 (2019-05-23)

Bug Fixes

Commits

The new version differs by 1 commits.

  • 712d840 fix: requireReadOnlyReactProps (#406)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

sync read didn't work

Node.js v12.7.0

const fs = require('fs')
const PNG = require('pngjs3')
PNG.sync.read(fs.readFileSync('file.png'))

Got the result:

Thrown:
TypeError: "list" argument must be an Array of Buffers
    at Function.concat (/Users/yllan/Projects/test/node_modules/pngjs3/dist/pngjs3.js:817:13)
    at parse (/Users/yllan/Projects/test/node_modules/pngjs3/dist/pngjs3.js:7117:28)
    at Object.read (/Users/yllan/Projects/test/node_modules/pngjs3/dist/pngjs3.js:7511:10)

Hello from Jimp

Hey! I like that you're maintaining this since pngjs2 seems dead. I'm trying to integrate this project with jimp since it looks like it might fix one of our issues. I'm finding that you're pre bundling the entire library and not shipping a node version at all. Even when running on node it runs with browserify zlib.

I jump created https://github.com/jimp-dev to house the jimp repo going forward to facilitated collaboration and the long term health of the project. Would you be interested in moving this repo and it's development there? If so I can fix all the builds so all you need worry about is making pings better 😄

Browser example of creating a png from user image data

Could you make an example or two of use of pngjs3 in the browser? I didn't see any on the readme or examples/ dir.

My use-case is that I have all the byte data for an image, basically an imageData object with width, height, data of an existing png image.

I get the data using a webgl stunt to avoid canvas issues, mainly alpha-premultiply and color space conversions. OTOH if pngjs3 can grab the image data for me, that would be great!

I then modify the image bytes for steganography usage using the two least significant bits of all 4 RGBA pixel values.

Finally I want to update the png image (or create a new one) with the modified data, writing it to the users download directory using a dataUrl of the data .. again a canvas approach, sigh.

I'm hoping that I could use pngjs3 to do this, in the browser. The dataUrl is just a convenience so no worries.

Here's the download stunt:

// download canvas as png. canvas can be a dataURL.
export function downloadCanvas(can, name = 'canvas.png') {
    const url = typeof can === 'string' ? can : can.toDataURL()
    const link = document.createElement('a')
    link.download = name
    link.href = url
    link.click()
}

How do I use the browser version

With pngjs after npm install pngjs I can import it for the web browser by import { PNG } from 'pngjs/browser';
How do I accomplish this with pngjs3?

Thanks!

Fix coveralls

I can't get the coveralls to function with the nyc package. I have limited experience with Travis and coveralls and I'm not sure where to start digging....

An in-range update of nodemon is breaking the build 🚨

The devDependency nodemon was updated from 1.18.5 to 1.18.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

nodemon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.18.6

1.18.6 (2018-11-05)

Bug Fixes

Commits

The new version differs by 1 commits.

  • 521eb1e fix: restart on change for non-default signals (#1409) (#1430)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Immutable data storage

When using Redux it is:

It is highly recommended that you only put plain serializable objects, arrays, and primitives into your store

The pngjs3 would therefore benefit from a serialize() and static deserialize() methods.

The data should then be kept in a storage that follows the immutability principles implemented by libraries such as immer.

In addition the width & height object should be available in a combined object. Components not responsible for drawing (e.g. non-canvas) often only care about the image shape and not the data and should therefore not have to handle the entire object. This should be available as a shape property.

The plan to implementation is through getters and setters for retaining the current API while adding a store property that contains:

  • width: number;
  • height: number;
  • color: boolean;
  • depth: number;
  • _grayscaleData: Uint8Array | Uint16Array | void;
  • _propData: ?Float32Array;
  • data: ?Buffer;
  • gamma: number

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.14.2 to 1.14.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.14.3

2019-06-06

Bug Fixes

  • Generate correct external imports when importing from a directory that would be above the root of the current working directory (#2902)

Pull Requests

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

browserify build not found

hi there,
I follow your instruction to use pngjs3 on browser, but it seems to me the library does not have any build for browser yet. Please correct me if I am wrong!

An in-range update of flow-copy-source is breaking the build 🚨

The devDependency flow-copy-source was updated from 2.0.4 to 2.0.5.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

flow-copy-source is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Options variable should be optional in sync.read

The following is the typings for sync.read:

export namespace sync {
  function read(buffer: BufferInput, options: Options): PNG;
  function write(png: PNG, options: Options): PNG;
}

options in read should be optional according to docs.

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.9.2 to 1.9.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v1.9.3

2019-04-10

Bug Fixes

  • Simplify return expressions that are evaluated before the surrounding function is bound (#2803)

Pull Requests

  • #2803: Handle out-of-order binding of identifiers to improve tree-shaking (@lukastaegert)
Commits

The new version differs by 3 commits.

  • 516a06d 1.9.3
  • a5526ea Update changelog
  • c3d73ff Handle out-of-order binding of identifiers to improve tree-shaking (#2803)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

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.