def extra_padding_y_keep_ratio(original_size, padding):
 return _resize(original_size, 1, padding=padding, keep_aspect_ratio=True)

def extra_padding_y_keep_ratio ( original_size , padding ) : return _resize ( original_size , 1 , padding = padding , keep_aspect_ratio = True )
reduce the height of original_size by padding .