@cli.command('sharpen')
@click.option('-f', '--factor', default=2.0, help='Sharpens the image.', show_default=True)
@processor
def sharpen_cmd(images, factor):
 for image in images:
  click.echo(('Sharpen "%s" by %f' % (image.filename, factor)))
  enhancer = ImageEnhance.Sharpness(image)
  (yield copy_filename(enhancer.enhance(max(1.0, factor)), image))

@ cli . command ( 'sharpen' ) @ click . option ( '-f' , '--factor' , default = 2.0 , help = 'Sharpens the image.' , show_default = True ) @ processor def sharpen_cmd ( images , factor ) : for image in images : click . echo ( ( 'Sharpen "%s" by %f' % ( image . filename , factor ) ) ) enhancer = ImageEnhance . Sharpness ( image ) ( yield copy_filename ( enhancer . enhance ( max ( 1.0 , factor ) ) , image ) )
sharpens an image .