Preparing search index...

    Function saveFormatForExtension

    • Maps a file extension to the expo-image-manipulator save format that keeps the image in its original container.

      Parameters

      • extension: string

        File extension without the leading dot, any casing

      Returns SaveFormat | null

      Matching save format, or null when the format cannot be preserved

      saveFormatForExtension('JPEG') // SaveFormat.JPEG
      saveFormatForExtension('gif') // null