Skip to content

Releases: duniul/trim-image-data

v2.1.0

21 Feb 12:52
Compare
Choose a tag to compare

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

23 Oct 13:00
Compare
Choose a tag to compare

Patch Changes

v2.0.0

27 Mar 21:01
Compare
Choose a tag to compare

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

04 Sep 07:06
Compare
Choose a tag to compare

1.0.2 (2020-09-04)

Bug Fixes

  • only include built files in the package (ca9d7cc)

v1.0.1

03 Sep 15:27
Compare
Choose a tag to compare

1.0.1 (2020-09-03)

Bug Fixes

  • improve performance and reduce package size (b2a2923)

v1.0.0

30 Aug 20:04
Compare
Choose a tag to compare
chore: set up github actions