View a markdown version of this page

Sharp Size Limit - Dynamic Image Transformation for Amazon CloudFront

Sharp Size Limit

Sharp restricts the pixel size of input images to 268402689 by default (16383 ^ 2). To modify the value the solution passes to sharp, in combination with the instructions in Mappings, modify the value under SharpSizeLimit from "", to the pixel limit you choose, based on the following rules:

  1. An empty string or a non-number string will use the existing default.

  2. A value of "0" will remove the limit.

  3. A positive integer value will set the limit to that value, for example, a mapping value of "2500000" will cause the value passed to Sharp to be 2500000.

  4. Negative and decimal values are not permitted, and may cause errors with image processing.