Skip to content

Camera always capture image as jpg, not able to capture HEIF/HEIC extension #119795

Closed

Description

@nirav-eximiousglobal

Trying to capture image and also done settings (Camera > Formats > High Effieiency) but it always return jpg image. How can i capture image in iPhone with Heif or Heic extension?

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Feb 2, 2023
  2. huycozy commented on Feb 2, 2023

    @huycozy
    Member

    @nirav-eximiousglobal
    Currently, the temporary captured file is saved in jpg format:

    https://github.com/flutter/plugins/blob/dbf8d8d0734287c99b57f52e5fbb897ccd60f1a1/packages/camera/camera_avfoundation/ios/Classes/FLTCam.m#L243-L246

    NSString *path = [self getTemporaryFilePathWithExtension:@"jpg"
                                                 subfolder:@"pictures"
                                                    prefix:@"CAP_"
                                                     error:error];
    

    Labeling the issue as a proposal for supporting High Efficiency image format.

  3. added
    c: new featureNothing broken; request for a new capability
    platform-iosiOS applications specifically
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Feb 2, 2023
  4. added
    P3Issues that are less important to the Flutter project
    on Feb 2, 2023
  5. 17 remaining items

  6. Mairramer commented on Nov 20, 2023

    @Mairramer
    Contributor

    @patelnirav48 What device are you using? I tried to play it on my iPhone X and I couldn't. I tested some scenarios and was unable to reproduce the error.
    I use this project flutter_camera_demo and update to current version of camera changes.

  7. patelnirav48 commented on Nov 20, 2023

    @patelnirav48

    @Mairramer Im using iPhone XR

  8. Mairramer commented on Nov 20, 2023

    @Mairramer
    Contributor

    @patelnirav48 Any additional information would be welcome to investigate.

  9. patelnirav48 commented on Nov 20, 2023

    @patelnirav48

    @Mairramer Below is the iOS version using

    Model Name - iPhoneXR
    iOS - 16.6.1

  10. Mairramer commented on Nov 20, 2023

    @Mairramer
    Contributor

    @patelnirav48 Do you have any demo of the implementation you are using?

  11. patelnirav48 commented on Nov 20, 2023

    @patelnirav48

    @Mairramer I dont have that now, but i’ve updated this method in my existing camera library just to check heif implementation based on your branch changes.

    IMG_4336

  12. hellohuanlin commented on Aug 20, 2026

    @hellohuanlin
    Contributor

    Closing as complete from flutter/packages#4586

  13. github-actions commented on Sep 3, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  14. locked as resolved and limited conversation to collaborators on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: castawayp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions