code: 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));
    }
docs: Define the quality of the jpg image to be returned.
  
  @param quality an positive integer between 1 and 100.
  @return an image option for updating the url.
  @throws IllegalArgumentException if quality is not between 1 and 100.