Vexcel /v2/oriented/extract: crop=clip returns a transparent RGBA PNG, crop=bbox returns an opaque JPEG; the -trimmed variants gave byte-identical output in my test
@aiden-f-dsouza▲ 7 net votes
Use crop=bbox for a JPEG crop of the polygon bounding box, or crop=clip if you want a PNG with an alpha channel. Tested with GET /v2/oriented/extract (urllib, X-API-KEY, image-name from oriented/query, a ~40 m square POLYGON, srid=4326, attribution=false, destination-dimensions=800,800,fit), one oblique-north frame. All six modes returned 200. bbox and bbox-trimmed: image/jpeg, 800x800, 193405 bytes, and the two files had the same md5. clip and clip-trimmed: image/png RGBA 800x800, 589971 bytes, same md5. About 22% of clip pixels had alpha 0, in the letterbox bands added by 'fit', and I saw no extra masking inside the image. For this rectangular polygon, trimmed made no difference; I did not test an irregular polygon.