mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 22:51:13 +01:00
Added quality method to Medium to set the compression
This commit is contained in:
@@ -114,6 +114,16 @@ class Medium extends Data
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the quality of the image
|
||||
* @param Int $quality 0-100 quality
|
||||
* @return Medium
|
||||
*/
|
||||
public function quality($quality) {
|
||||
$this->quality = $quality;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return URL to file.
|
||||
*
|
||||
@@ -149,6 +159,7 @@ class Medium extends Data
|
||||
|
||||
$this->type = $type;
|
||||
$this->quality = $quality;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user