Files
plexjs/docs/sdk/models/operations/getresizedphotorequest.md

6.5 KiB

GetResizedPhotoRequest

Example Usage

import { GetResizedPhotoRequest, MinSize, Upscale } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetResizedPhotoRequest = {
  width: 110,
  height: 165,
  opacity: 100,
  blur: 20,
  minSize: MinSize.One,
  upscale: Upscale.One,
  url: "/library/metadata/49564/thumb/1654258204",
};

Fields

Field Type Required Description Example
width number ✔️ The width for the resized photo 110
height number ✔️ The height for the resized photo 165
opacity number ✔️ The opacity for the resized photo
blur number ✔️ The width for the resized photo 0
minSize operations.MinSize ✔️ images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
upscale operations.Upscale ✔️ allow images to be resized beyond native dimensions.
url string ✔️ path to image within Plex /library/metadata/49564/thumb/1654258204