You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifIntegerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.try {
InfoResponseresult = apiInstance.cropAsyncGet(url, x0, x1, y0, y1);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropAsyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifIntegerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.try {
ApiResponse<InfoResponse> response = apiInstance.cropAsyncGetWithHttpInfo(url, x0, x1, y0, y1);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropAsyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
cropAsyncPost
InfoResponse cropAsyncPost(x0, x1, y0, y1, body)
Example
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Integerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,giftry {
InfoResponseresult = apiInstance.cropAsyncPost(x0, x1, y0, y1, body);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropAsyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Integerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,giftry {
ApiResponse<InfoResponse> response = apiInstance.cropAsyncPostWithHttpInfo(x0, x1, y0, y1, body);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropAsyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
cropSyncGet
File cropSyncGet(url, x0, x1, y0, y1)
Example
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifIntegerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.try {
Fileresult = apiInstance.cropSyncGet(url, x0, x1, y0, y1);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropSyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifIntegerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.try {
ApiResponse<File> response = apiInstance.cropSyncGetWithHttpInfo(url, x0, x1, y0, y1);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropSyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Integerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,giftry {
Fileresult = apiInstance.cropSyncPost(x0, x1, y0, y1, body);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropSyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.CropApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");CropApiapiInstance = newCropApi(defaultClient);
Integerx0 = 56; // Integer | the x coordinate of the first point of the rectangle to crop.Integerx1 = 56; // Integer | the x coordinate of the second point of the rectangle to crop.Integery0 = 56; // Integer | the y coordinate of the first point of the rectangle to crop.Integery1 = 56; // Integer | the y coordinate of the second point of the rectangle to crop.Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,giftry {
ApiResponse<File> response = apiInstance.cropSyncPostWithHttpInfo(x0, x1, y0, y1, body);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling CropApi#cropSyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
x0
Integer
the x coordinate of the first point of the rectangle to crop.
x1
Integer
the x coordinate of the second point of the rectangle to crop.
y0
Integer
the y coordinate of the first point of the rectangle to crop.
y1
Integer
the y coordinate of the second point of the rectangle to crop.