public static ImageOption jpegQualityOf ( int quality ) { if ( quality < 1 || quality > 100 ) { throw new IllegalArgumentException ( "Quality has to be in the range from 1 to 100." ) ; } return new ImageOption ( "q" , Integer . toString ( quality ) ) ; }
Define the quality of the jpg image to be returned .