def generate_thumbnail(width, height, url, smart_cropping:false, custom_headers:nil)
      response = generate_thumbnail_async(width, height, url, smart_cropping:smart_cropping, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def generate_thumbnail(width, height, url, smart_cropping:false, custom_headers:nil)
      response = generate_thumbnail_async(width, height, url, smart_cropping:smart_cropping, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
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.
 Upon failure, the error code and an error message are returned. The error
 code could be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize,
 InvalidThumbnailSize, NotSupportedImage, FailedToProcess, Timeout, or
 InternalServerError.

 @param width [Integer] Width of the thumbnail, in pixels. It must be between
 1 and 1024. Recommended minimum of 50.
 @param height [Integer] Height of the thumbnail, in pixels. It must be
 between 1 and 1024. Recommended minimum of 50.
 @param url [String] Publicly reachable URL of an image.
 @param smart_cropping [Boolean] Boolean flag for enabling smart cropping.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [NOT_IMPLEMENTED] operation results.