fluttercandies / flutter_image_compress

flutter image compress
MIT License
632 stars 215 forks source link

[Feature request] Replace UIGraphicsBeginImageContext with UIGraphicsImageRenderer #310

Open GabrielAraujo opened 1 month ago

GabrielAraujo commented 1 month ago

Platforms

iOS

Description

UIGraphicsBeginImageContext was deprecated on iOS 17 and is causing some crashes like the bellow:

Screenshot 2024-06-25 at 12 25 54

This is the file it is used

Why

Reduce crashing and improve the library to use the latest implementations on the native side.