Skip to content

mediaMetadataFromExif — @gj-kit/expo-media

A public function from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { mediaMetadataFromExif } from '@gj-kit/expo-media';
/**
* 전신 `extractPhotoMetadata`.
*
* ⚠ **유효값이 하나도 없으면 `undefined`를 반환한다 — 빈 객체 금지**(photoMetadata.ts:130 규칙).
* truthy한 빈 객체를 주면 호출자가 "EXIF가 있었다"고 믿게 되고, 그 오해는 업로드 완료 페이로드의
* `photo` 필드까지 그대로 흘러간다.
*/
declare function mediaMetadataFromExif(exif?: ReadonlyExifRecord | null): MediaMetadata | undefined;

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.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub