ExpoImageProcessor — @gj-kit/expo-media
A public interface from @gj-kit/expo-media/image. The signature below is taken directly from the 0.6.1 release declaration.
Verified import example
Section titled “Verified import example”import { ExpoImageProcessor } from '@gj-kit/expo-media/image';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”interface ExpoImageProcessor { getImageSize(uri: string): Promise<ImageSize>; /** Re-encodes once so the platform decoder applies EXIF orientation; never rotate from EXIF manually. */ normalizeOrientation(uri: string): Promise<ProcessedImage>; /** Re-encodes to JPEG and reduces only when the source exceeds `maxWidth`. */ resizeToMaxWidth(input: ResizeImageToMaxWidthInput): Promise<ProcessedImage>; rotate(input: RotateImageInput): Promise<ProcessedImage>; /** Crops display coordinates; Android first normalizes the raster to the displayed source dimensions. */ cropDisplayed(input: CropDisplayedImageInput): Promise<ProcessedImage>;}This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-media - Version:
0.6.1 - Public entry:
./image - Source: GitHub