Socket
Socket
Sign inDemoInstall

@expo/image-utils

Package Overview
Dependencies
37
Maintainers
27
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @expo/image-utils

A package used by Expo CLI for processing images


Version published
Weekly downloads
580K
decreased by-22.25%
Maintainers
27
Install size
2.21 MB
Created
Weekly downloads
 

Readme

Source

👋 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.

Keywords

FAQs

Last updated on 15 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc