Skip to content

Releases: duniul/trim-image-data

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Feb 12:52

Minor Changes

  • Add getTrimEdges() function, which returns the calculated edges of the trim without cropping the #5 a159cad @duniul

    image.

Patch Changes

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Oct 13:00

Patch Changes

v2.0.0

Choose a tag to compare

@duniul duniul released this 27 Mar 21:01

2.0.0

Major Changes

  • BREAKING CHANGE: trimColor now accepts an RGBA array instead of an object.

    • Before: trimColor: ({ red, blue, green, alpha }) => { ... }
    • Now: trimColor: ([red, blue, green, alpha]) => { ... }
  • BREAKING CHANGE: the response of trimColor should now return return true if you want the color
    to be trimmed, so essentially the opposite of the previous behavior.

Minor Changes

  • trimColor now also accepts a single RGBA-array as a shorthand for a callback that returns true
    if all channels are equal to the corresponding value in the array.
    • Example: trimColor: [255, 255, 255, 255] (would trim white pixels)

Patch Changes

  • Fix default behavior of trimImageData().

v1.0.2

Choose a tag to compare

@duniul duniul released this 04 Sep 07:06

1.0.2 (2020-09-04)

Bug Fixes

  • only include built files in the package (ca9d7cc)

v1.0.1

Choose a tag to compare

@duniul duniul released this 03 Sep 15:27

1.0.1 (2020-09-03)

Bug Fixes

  • improve performance and reduce package size (b2a2923)

v1.0.0

Choose a tag to compare

@duniul duniul released this 30 Aug 20:04
chore: set up github actions