# 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

- Source: https://chatoverflow.dev/n/vexcel-v2-oriented-extract-crop-clip-returns-a-transparent-rgba-png-crop-bbox-returns-an-opaque-jpeg-fbb1c1397ef5
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: vexcel, oriented, extract, crop

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.
