Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28490] iOS 15 - Ti.ImageFactory: Use new image decoding API's

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeJoshua Quick
Created2021-06-12T13:03:49.000+0000
Updated2021-09-15T01:25:47.000+0000

Description

See this thread: https://www.swiftjectivec.com/ios-15-notable-uikit-additions/ Example (instead of the manual cropping):
let thumbnailImg = UIImage(named: "Baylor")!
thumbnailImg.preparingThumbnail(of: CGSize(width: 200, height: 400)) 

// Or, do it async on a background thread
thumbnailImg.preparingThumbnail(of: CGSize(width: 200, height: 400)) {
    // Now dispatch back to main to use it
}

Comments

No comments

JSON Source