@expo/image-utils
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

👋 Welcome to
@expo/image-utils

A library for image processing functionality in Expo CLI.

It uses sharp for image processing if it's available through a global sharp-cli installation. Otherwise it uses jimp, a Node library with no native dependencies, and warns the user that they may want to install sharp-cli for faster image processing.

Advanced Configuration

This package can be configured using the following environment variables.

EXPO_IMAGE_UTILS_NO_SHARP

When truthy, this will force global sharp-cli resolution methods like isAvailableAsync() and findSharpInstanceAsync() to fail. Other processes can use this to fallback on Jimp for image modifications. By default this is falsy (undefined).

findSharpInstanceAsync() will throw an error if disabled because it shouldn't be invoked if isAvailableAsync() returns false.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @expo/image-utils

Weekly Downloads

664,929

Version

0.4.1

License

MIT

Unpacked Size

75.1 kB

Total Files

33

Last publish

Collaborators

  • radoslawkrzemien
  • pkham
  • szdziedzic
  • tsapeta
  • wkozyra
  • ide
  • lukmccall
  • alanhughes
  • kadikraman
  • aleqsio
  • marklawlor
  • gabrieldonadel
  • simek
  • keith-kurak
  • christopherwalter
  • kbrandwijk
  • fiber-god
  • brentvatne
  • evanbacon
  • quinlanj
  • expoadmin
  • exponent
  • wschurman
  • bycedric
  • jonsamp
  • princefleaswallow
  • kudochien