Static Methodswift-png 4.4.5PNG

    decompress(path:)

    Decompresses and decodes a PNG from a file at the given file path.

    System.swift:249
    static func decompress(path: String) throws -> `Self`?

    Parameters

    path

    A path to a PNG file.

    Returns

    The decoded image, or nil if the file at the given path could not be opened.

    This interface is only available on MacOS and Linux. The decompress(stream:) function provides a platform-independent decoding interface.

    Other members in extension

    Type members

    Instance members