coronalabs / corona

Solar2D Game Engine main repository (ex Corona SDK)
https://solar2d.com/
MIT License
2.54k stars 273 forks source link

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

Closed usmandotmughal closed 11 months ago

usmandotmughal commented 12 months ago

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:

whole test project SaveImageSample.zip

video of the issue Video

scottrules44 commented 11 months ago

Fixed in 3701