Skip to content

[iOS]: display.save saving black image on iOS 17+ #654

@usmandotmughal

Description

@usmandotmughal

Describe the bug
If I build the app on macOS Sonoma with Xcode 15 using Solar2D build "Corona-3700". In iOS17, display.save() is saving a black image with an error in the console:
verify_image_parameters: invalid image alphaInfo: kCGImageAlphaNone. It should be kCGImageAlphaNoneSkipLast

To Reproduce
Steps to reproduce the behavior:

  1. Create any image or rect
  2. Invoke display.save on the above object
  3. View the image file that was created; it always appears black

Target platform and where the build was made:

  • Device: iPhone11 Pro Max, iPhone 15 Pro Max, iPhone 12 mini
  • OS: iOS 17, iOS 17.1.1

whole test project
SaveImageSample.zip

video of the issue
Video

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions