You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ios): prevent crash when printing images without internet connection (#229)
* fix(ios): prevent crash when printing images without internet connection
- Add validation checks in ImageManager.m to handle nil data and invalid image dimensions
- Add error handling in ThePrinter.m to return EPOS2_ERR_PARAM instead of crashing
- Prevent UIGraphicsBeginImageContext crash with invalid size parameters
- Fix division by zero in getImageCGSize when image width is 0
Fixes crash: UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={472, 0}
* fix: review comments
* fix: error code returned
0 commit comments