Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit b4a841e

Browse files
authored
Merge pull request #266 from davidyell/develop
Merge for release
2 parents a96b6de + 3081dd7 commit b4a841e

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

src/Lib/ImageTransform.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ protected function thumbnailFit(Image $image, $width, $height)
154154
*/
155155
protected function thumbnailResize(Image $image, $width, $height)
156156
{
157-
return $image->resize($width, $height);
157+
return $image->resize($width, $height, function ($constraint) {
158+
$constraint->aspectRatio();
159+
});
158160
}
159161

160162
/**

src/Plugin.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/**
4+
* @category Proffer
5+
* @package Plugin.php
6+
*
7+
* @author Michel Peters <info@isemantics.nl>
8+
* @when 11/06/18
9+
*
10+
*/
11+
12+
namespace Proffer;
13+
14+
use Cake\Core\BasePlugin;
15+
16+
/**
17+
* Default Plugin class
18+
*/
19+
class Plugin extends BasePlugin
20+
{
21+
}

0 commit comments

Comments
 (0)