Skip to content

crashe after the format conversion process #70

@Mengzhihong

Description

@Mengzhihong

hi,On iPhone running iOS 18.7, the app crashes after taking a photo due to excessive memory usage during the format conversion process.

public static func extractJPEG(from inspURL: URL) ->String{
        let ins = INSExportImageSimplify()
        if let size = getInsta360InspResolution(from: inspURL) {
            debugLog("reslotion → \(size)")
            ins.width = Int32(size.width)
            ins.height = Int32(size.height)
        }
        ins.colorFusion = true
        let docs = FileManager.default.temporaryDirectory
        let output = docs.appendingPathComponent("\(UUID().uuidString).jpg")
        ins.exportImage(withInputUrl: inspURL, outputUrl: output)
        debugLog("output → \(output.path)")
        return output.path
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions