compress method

TransformationData compress(
  1. int? quality
)

Method for Basic Transformations @param quality int (Default: 80) @return TransformationData.

Implementation

TransformationData compress(
  int? quality,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (quality != null) {
    values['q'] = quality.toString();
  }

  return TransformationData(plugin: 't', name: 'compress', values: values);
}