public ServiceFuture<InputStream> generateThumbnailAsync(int width, int height, String url, GenerateThumbnailOptionalParameter generateThumbnailOptionalParameter, final ServiceCallback<InputStream> serviceCallback) {
        return ServiceFuture.fromResponse(generateThumbnailWithServiceResponseAsync(width, height, url, generateThumbnailOptionalParameter), serviceCallback);
    }
public ServiceFuture < InputStream > generateThumbnailAsync ( int width , int height , String url , GenerateThumbnailOptionalParameter generateThumbnailOptionalParameter , final ServiceCallback < InputStream > serviceCallback ) { return ServiceFuture . fromResponse ( generateThumbnailWithServiceResponseAsync ( width , height , url , generateThumbnailOptionalParameter ) , serviceCallback ) ; }
This operation generates a thumbnail image with the user-specified width and height. By default, the service analyzes the image, identifies the region of interest (ROI), and generates smart cropping coordinates based on the ROI. Smart cropping helps when you specify an aspect ratio that differs from that of the input image. A successful response contains the thumbnail image binary. If the request failed, the response contains an error code and a message to help determine what went wrong.

@param width Width of the thumbnail. It must be between 1 and 1024. Recommended minimum of 50.
@param height Height of the thumbnail. It must be between 1 and 1024. Recommended minimum of 50.
@param url Publicly reachable URL of an image
@param generateThumbnailOptionalParameter the object representing the optional parameters to be set before calling this API
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object