Q: Am I able to issue an API request which will create a new file (with a new uuid) that is a cropped image of another file, so that the automatic S3 backup feature would capture both the original and the cropped image? In other words, I would like to have two files I can get at URLs /uuid1 and /uuid2, where uuid1.jpg is the original image, and uuid2.jpg is the cropped image.
A: This is possible. You can create a copy of a file with crop operations applied via the POST request
The source
parameter will be your file cdnUrl
. If you want this file to appear on the backup bucket, you need to store it. You can do it via a separate store request for new UUID, or you can add store=true
parameter to copy request to do it automatically.