Skip to content

Commit

Permalink
Set compression
Browse files Browse the repository at this point in the history
  • Loading branch information
notesz committed Nov 9, 2016
1 parent ced8080 commit 4db86cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ public function resize()

// Set compression quality
$img->setCompressionQuality($this->compression);
$img->setImageCompressionQuality($this->compression);

// Save
$outFileName = (empty($this->prefix) ? '' : $this->prefix . self::SEPARATOR) . $fileName . self::SEPARATOR . $key . '.' . $fileNameExtension;
Expand Down

0 comments on commit 4db86cb

Please sign in to comment.