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

    Interface EncodedPhotoForUpload

    The WebP and the facts the upload's requests carry about it.

    interface EncodedPhotoForUpload {
        encoder: { libName: string; libVersion: string };
        file: Buffer;
        height: number;
        pdqHash: string | undefined;
        quality: number;
        source: { fileExtension: "jpg" | "png"; height: number; width: number };
        width: number;
    }
    Index

    Properties

    encoder: { libName: string; libVersion: string }

    image_compression's lib_name and lib_version.

    file: Buffer

    The WebP to upload (x-entity-type: image/webp).

    height: number
    pdqHash: string | undefined

    The pdq_hash of update_media_with_pdq_hash_info, "<64 hex digits>:<quality>"; absent for a carousel photo, which the app does not hash.

    quality: number

    image_compression's quality, as a number.

    source: { fileExtension: "jpg" | "png"; height: number; width: number }

    The developer's file as it is, before any orientation: image_compression's original_width / original_height, configure's source_width / source_height, and provenance_metadata's file_extension (the source's, not webp).

    width: number

    The encoded picture's size.