

@cli.command('smoothen')
@click.option('-i', '--iterations', default=1, show_default=True, help='How many iterations of the smoothen filter to run.')
@processor
def smoothen_cmd(images, iterations):
    'Applies a smoothening filter.'
    for image in images:
        click.echo(('Smoothening "%s" %d time%s' % (image.filename, iterations, (((iterations != 1) and 's') or ''))))
        for x in xrange(iterations):
            image = copy_filename(image.filter(ImageFilter.BLUR), image)
        (yield image)

dataset/ETHPy150Open pallets/click/examples/imagepipe/imagepipe.py smoothen_cmd/original