View a markdown version of this page

Edit images - Dynamic Image Transformation for Amazon CloudFront

Edit images

You can use this solution to edit your images, such as rotating them or changing the coloring to negative. Refer to the sharp documentation for a description of each operation. For example, to produce a negative of an image, enter the following:

const imageRequest = JSON.stringify({ bucket: "<myImageBucket>", key: "<myImage.jpeg>", edits: { negate: true } })