Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

refactor(image-utils): move to expo/expo #4787

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
expo-cli,
expo-doctor,
expo-codemod,
image-utils,
pkcs12,
plist,
pwa,
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
babel-preset-cli,
expo-cli,
expo-codemod,
image-utils,
pkcs12,
plist,
pwa,
Expand Down
21 changes: 0 additions & 21 deletions packages/image-utils/LICENSE

This file was deleted.

29 changes: 2 additions & 27 deletions packages/image-utils/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
<!-- Title -->
<h1 align="center">
👋 Welcome to <br><code>@expo/image-utils</code>
</h1>
# `@expo/image-utils`

<p align="center">A library for image processing functionality in Expo CLI.</p>

<p align="center">
<img src="https://flat.badgen.net/packagephobia/install/@expo/image-utils">

<a href="https://www.npmjs.com/package/@expo/image-utils">
<img src="https://flat.badgen.net/npm/dw/@expo/image-utils" target="_blank" />
</a>
</p>

<!-- Body -->

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`.
This package has [moved to the `expo/expo` repo](https://github.com/expo/expo/tree/main/packages/%40expo/image-utils).
20 changes: 0 additions & 20 deletions packages/image-utils/e2e/__tests__/sharp-test.ts

This file was deleted.

11 changes: 0 additions & 11 deletions packages/image-utils/jest.config.js

This file was deleted.

51 changes: 0 additions & 51 deletions packages/image-utils/package.json

This file was deleted.

93 changes: 0 additions & 93 deletions packages/image-utils/src/Cache.ts

This file was deleted.

52 changes: 0 additions & 52 deletions packages/image-utils/src/Download.ts

This file was deleted.

Loading
Loading