def crop(image_data, left_x, top_y, right_x, bottom_y, output_encoding=PNG, quality=None, correct_orientation=UNCHANGED_ORIENTATION, rpc=None, transparent_substitution_rgb=None):
 rpc = crop_async(image_data, left_x, top_y, right_x, bottom_y, output_encoding=output_encoding, quality=quality, correct_orientation=correct_orientation, rpc=rpc, transparent_substitution_rgb=transparent_substitution_rgb)
 return rpc.get_result()

def crop ( image_data , left_x , top_y , right_x , bottom_y , output_encoding = PNG , quality = None , correct_orientation = UNCHANGED_ORIENTATION , rpc = None , transparent_substitution_rgb = None ) : rpc = crop_async ( image_data , left_x , top_y , right_x , bottom_y , output_encoding = output_encoding , quality = quality , correct_orientation = correct_orientation , rpc = rpc , transparent_substitution_rgb = transparent_substitution_rgb ) return rpc . get_result ( )
randomly or centrally crop an image .