Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PlacesPhotosGetMediaOptions

import type { PlacesPhotosGetMediaOptions } from "https://googleapis.deno.dev/v1/places:v1.ts";

Additional options for Places#placesPhotosGetMedia.

interface PlacesPhotosGetMediaOptions {
maxHeightPx?: number;
maxWidthPx?: number;
skipHttpRedirect?: boolean;
}

§Properties

§
maxHeightPx?: number
[src]

Optional. Specifies the maximum desired height, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned. At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.

§
maxWidthPx?: number
[src]

Optional. Specifies the maximum desired width, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned. At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.

§
skipHttpRedirect?: boolean
[src]

Optional. If set, skip the default HTTP redirect behavior and render a text format (for example, in JSON format for HTTP use case) response. If not set, an HTTP redirect will be issued to redirect the call to the image media. This option is ignored for non-HTTP requests.