@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):
 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)

@ 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 ) : 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 )
applies a smoothening filter .