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

    Function EncodePhotoForUpload

    • Encodes the developer's photo the way the app does before uploading it, and answers the facts the upload's requests carry about it. The posting screens call it where the app encodes a pixel (a Story's photo between the caption's check and the upload, a post's after Share, a carousel child's at the editor's Next); the bytes it writes are the ones the upload sends.

      Parameters

      Returns Effect<
          {
              encoder: { libName: string; libVersion: string };
              file: Buffer<ArrayBuffer>;
              height: number;
              pdqHash: string | undefined;
              quality: number;
              source: { fileExtension: "jpg" | "png"; height: number; width: number };
              width: number;
          },
          PostingPhotoEncodeError,
          never,
      >