imagetools

Load and transform images using a toolbox of custom import directives!

MIT License

Downloads
346K
Stars
880

Bot releases are visible (Hide)

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.4.0-next.5 (2021-04-11)

Bug Fixes

  • import types from the right file (92fbe14)
  • switch from default to named export (b2f0ca7)
imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.1.0-next.14 (2021-04-11)

Note: Version bump only for package imagetools-core

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.4.0-next.4 (2021-04-09)

Features

  • respect vite configuration when generating output code (e4a9c66), closes #55
imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.0.0-next.1 (2021-04-06)

Bug Fixes

  • correctly replace image references in chunks (bdd9b6f)

Features

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.1.0-next.13 (2021-04-06)

Note: Version bump only for package imagetools-core

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.4.0-next.3 (2021-04-06)

Bug Fixes

  • mark force option as deprecated (23b0aef)

Features

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.4.0-next.2 (2021-04-05)

Note: Version bump only for package vite-imagetools

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.1.0-next.12 (2021-04-05)

Note: Version bump only for package imagetools-core

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.4.0-next.1 (2021-03-30)

Note: Version bump only for package vite-imagetools

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.1.0-next.11 (2021-03-30)

Note: Version bump only for package imagetools-core

imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.4.0-next.0 (2021-03-30)

Bug Fixes

  • support nodejs LTS versions (4abccc5), closes #51
  • update cache key geneartion to match spec (7f0a0e8)

Features

  • allow metadata removal to be toggled by option (5d0c781)
imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.1.0-next.10 (2021-03-30)

Bug Fixes

  • cache key generation (e09434c)
  • support nodejs LTS versions (4abccc5), closes #51
  • update cache key geneartion to match spec (7f0a0e8)

Features

  • allow metadata removal to be toggled by option (5d0c781)
imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

3.3.2-alpha.0 (2021-03-30)

Bug Fixes

  • support nodejs LTS versions (4abccc5), closes #51
imagetools - [email protected]

Published by github-actions[bot] over 3 years ago

0.1.0-next.9 (2021-03-30)

Bug Fixes

  • support nodejs LTS versions (4abccc5), closes #51
imagetools - v3.1.0

Published by github-actions[bot] over 3 years ago

3.1.0 (2021-03-11)

Bug Fixes

  • add imageToBuffer function (06ff36e), closes #22
  • tint directive was not parsing color correctly (1891097)

Features

imagetools - v3.0.2

Published by github-actions[bot] over 3 years ago

3.0.2 (2021-03-11)

Bug Fixes

imagetools - v3.0.0-next.15

Published by github-actions[bot] over 3 years ago

3.0.0-next.15 (2021-03-11)

Bug Fixes

imagetools - v3.0.1

Published by github-actions[bot] over 3 years ago

3.0.1 (2021-03-10)

imagetools - v3.0.0

Published by github-actions[bot] over 3 years ago

3.0.0 (2021-03-10)

Features

BREAKING CHANGES

  • A lot of things changed so it's not backwards compatible

  • revert: remove old unit tests

  • revert: remove old directives

  • feat: update format directive to function style

  • feat: update resize directive to function style

  • feat: update rotate directive to function style

  • fix: export builtin directives

  • refactor: remove old options fn

  • feat: add generic types

  • fix: export image format union type

  • feat: add utility function

  • chore: fix built ouput

  • feat: add ouput processing function

  • chore: update typescript

  • feat: use cacache for better caching

  • chore: rollup-pluginutils is deprecated use @rollup/pluginutils instead

  • feat: rewrite the main plugin file

  • chore: fix main entrypoint

  • docs: start v3 readme

  • chore update deps

  • style: move function to util file

  • style: add plugin options

  • feat: make caching optional

  • feat: make directives and output formats extensible

  • feat: make the filter extensible

  • feat: respect the vite config when generating the output

  • fix: actually move the function to util.ts

  • docs: add comments

  • chore: remove logging

  • style: prettify the file emitting

  • fix: import sharp

  • chore: add output format type

  • chore: add types to url output

  • chore: add types to srcset output

  • chore: add types to metadata output

  • docs: add comments explaining types

  • feat: add option to force image transformation in dev mode

  • docs: update roadmap

  • docs: add explanations for directives

  • feat: add the quality meta-directive

  • feat: add the fit meta-directive

  • feat: add the position meta-directive

  • feat: add the kernel meta-directive

  • feat: add the background meta-directive

  • fix: use meta directives

  • chore: reexport the directives for use defined directives

  • docs: update options description

  • refactor: rename from output to format

  • docs(README): Improve readme for version 3

  • chore: commit docs

  • build: dont test on ci

  • chore: mark the next branch as prerelease

  • chore: add vite to fix build

  • feat: improve docs for version 3

  • docs(README): add badges

  • docs: add example project

  • style: fix formatting

  • feat: warn on unknown directives

  • docs(README): add explanation for silent option

  • feat: use custom variable replacement instead of vites

  • fix: make urlFormat the fallback

  • feat: split on semicolons (;) instead of commas (,) to avoid srcset parser confusion

  • chore: add magic-string

  • docs(README): update feature list

  • feat: add the flip directive

  • feat: add the blur directive

  • feat: add the flop directive

  • feat: add the invert directive

  • feat: add the normalize directive

  • test: add unit tests for directives

  • fix: fix directive & metadirective typings

  • fix: parse blur argument correctly

using the blur function in boolean mode was not taken into consideration.

  • fix: stricter type cheking

  • docs: add srcset example

  • style: Fix readme styling

  • fix: disable caching when no path could be found

  • fix: array filtering type error

  • docs: explain utility functions

  • style: Extract parameter parsing logic into separate function

  • fix: type issues

  • build: reenable unit tests before release

  • docs: update readme feature list

  • docs: move directive documentation to inline comments

  • docs: fix typos

  • docs: fix undefined section

  • chore: cleanup imports

  • feat: add the flatten directive

  • feat: add the grayscale directive

  • feat: add the median directive

  • feat: add the tint directive

  • feat: enable image transforms even in development mode

This feature might change a lot as it's very hacky.

  • fix: export directives

  • docs: Update docs to reflect the new directives

  • docs(README): update the force option

Add a section that explains the caveats when using transforming images in development mode

  • fix: fix directive exports

  • docs: improve docs

  • docs(README): improve docs

  • docs: remove undefined spots & add hue, saturation and brightness

  • feat: add hsb directives

  • test: add missing directive tests

  • test: add output format tests

  • test: add tests to ensure directives are correctly exported

  • fix: flatten directive should accept the "true" argument

  • fix: hsb typing issues

  • test: add tests for important util functions

  • chore: generate coverage results

  • chore: fix coverage workflow

  • docs(README): add coverage badge

  • chore: update npm keywords

  • docs: add simple example

  • fix: bg-color fix hash prefix problem

  • fix: filter opts before calling modulate

  • fix: ensure directive is exported

  • style: rename options

  • style: add newline

  • test: reflect that bg color can only be exported without the hashtag

  • feat: add cache cleanup functionality

We go through the cache each time the build ends and check if each image has been referenced during the current build.
If it was we keep it, if not this likely means the image is not needed anymore and we evict it

  • docs(README): update readme for release

  • fix: type declaration path

imagetools - v3.0.0-next.14

Published by github-actions[bot] over 3 years ago

3.0.0-next.14 (2021-03-10)

Bug Fixes