mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
6.5 KiB
6.5 KiB
GetResizedPhotoRequest
Example Usage
import { GetResizedPhotoRequest, MinSize, Upscale } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetResizedPhotoRequest = {
width: 110,
height: 165,
blur: 0,
minSize: MinSize.One,
upscale: Upscale.Zero,
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 |