API Endpoint Access URL
https://api.pixlab.io/transpose
Get Your API Key & Try TRANSPOSE Now ↗Description
Create vertical mirror images by reflecting pixels around the central X axis and rotating them 90 degrees with the TRANSPOSE API. Creates a vertical mirror image by reflecting the pixels around the central X axis while rotating them 90-degrees.
HTTP Methods
GET, POST
HTTP Parameters
Required
Fields | Type | Description |
---|---|---|
img |
URL | Input image URL. If uploading directly from your app, submit a multipart/form-data POST request. |
key |
String | Your PixLab API Key ↗. Get your free trial key from the dashboard ↗. Alternatively, embed your key in the WWW-Authenticate: header and omit this parameter. |
Optional
Fields | Type | Description |
---|---|---|
blob |
Boolean | Returns JSON with output image URL by default. Set to true to receive raw image binary instead. |
POST Request Body
Use when submitting POST requests instead of GET:
Allowed Content-Types:
multipart/form-data
(for direct image uploads)application/json
(for pre-uploaded images)
For JSON requests, ensure your image is already hosted. Use the store endpoint to upload images before processing.
HTTP Response
Fields | Type | Description |
---|---|---|
status |
Integer | Status code 200 indicates success, any other code indicates failure. |
link |
URL | Link to the image output which is usually stored on the pixlab.xyz storage server unless you set your own S3 keys (refer to your dashboard ↗ on how to do that). |
id |
String | Unique image ID. |
error |
String | Error message if status != 200. |
The API returns application/json
if the optional blob parameter is not set.
This endpoint returns a JSON Object after each call only if the optional blob parameter is omitted. Otherwise, raw image binary data is returned.
Code Samples
# Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
// Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
# Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
# Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...