Skip to main content

MAX_IMAGE_PIXELS

The most pixels in one image, 4096 by 4096. A canvas has to hold the map as four bytes a pixel, twice (the engine's and the copy), and Safari refuses a canvas of more than this many pixels.

This is a constant exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { MAX_IMAGE_PIXELS } from "@mapcairn/core";

MAX_IMAGE_PIXELS = 16777216

Source: packages/core/src/imageExport/plan.ts:32