igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Interface EncodePhotoForUploadInput

    What the encode reads: the developer's file, the surface it is published to, and the device fact the upload's image_compression carries (the SDK level its lib_version is).

    interface EncodePhotoForUploadInput {
        aspectRatio?: number;
        libVersion: string;
        photo: Buffer;
        share: PhotoShare;
        withMusic?: boolean;
    }
    Index

    Properties

    aspectRatio?: number

    The frame's width over its height for a feed or carousel photo (the user's crop choice; the photo's own shape, after its orientation, when left out: the screens have no crop step). A Story's frame is always 9:16.

    libVersion: string

    The device's SDK level: image_compression's lib_version, which the app reads from Build.VERSION.SDK_INT.

    photo: Buffer

    The developer's file: a JPEG or a PNG.

    share: PhotoShare
    withMusic?: boolean

    A Story's photo a song is burned into: the app encodes it at the quality of a story with a song.